From 4ec0e0e72cfd456692d224880d8259ca3cdd90b9 Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Fri, 18 Oct 2024 15:26:58 -0700 Subject: [PATCH] Twilight Princess: Fix render hacks for new-style objects --- src/ZeldaTwilightPrincess/m_do_ext.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/ZeldaTwilightPrincess/m_do_ext.ts b/src/ZeldaTwilightPrincess/m_do_ext.ts index 0c4c2071b..72c183aea 100644 --- a/src/ZeldaTwilightPrincess/m_do_ext.ts +++ b/src/ZeldaTwilightPrincess/m_do_ext.ts @@ -157,6 +157,11 @@ export function mDoExt_modelEntryDL(globals: dGlobals, modelInstance: J3DModelIn if (drawListSet === null) drawListSet = globals.dlst.bg; + if (globals.renderHacks.renderHacksChanged) { + modelInstance.setVertexColorsEnabled(globals.renderHacks.vertexColorsEnabled); + modelInstance.setTexturesEnabled(globals.renderHacks.texturesEnabled); + } + modelInstance.calcView(viewerInput.camera, viewerInput.camera.viewMatrix); renderInstManager.setCurrentList(drawListSet[0]);