Skip to content

Commit

Permalink
Twilight Princess: Fix render hacks for new-style objects
Browse files Browse the repository at this point in the history
  • Loading branch information
magcius committed Oct 18, 2024
1 parent 3552e65 commit 4ec0e0e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/ZeldaTwilightPrincess/m_do_ext.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
Expand Down

0 comments on commit 4ec0e0e

Please sign in to comment.