Skip to content

Commit

Permalink
Disable trimming by default behind trimmingEnabled member variable
Browse files Browse the repository at this point in the history
  • Loading branch information
themikelester committed Dec 24, 2024
1 parent 69675a2 commit c423902
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/ZeldaWindWaker/Main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@ export class dCamera_c extends Camera {

// For people to play around with.
public cameraFrozen = false;
public trimmingEnabled = false;

private trimHeight = 0;
private cameraMode: CameraMode = CameraMode.Default;
Expand Down Expand Up @@ -302,7 +303,9 @@ export class dCamera_c extends Camera {
}

public applyScissor(pass: GfxRenderPass) {
pass.setScissor(this.scissor[0], this.scissor[1], this.scissor[2], this.scissor[3]);
if (this.trimmingEnabled) {
pass.setScissor(this.scissor[0], this.scissor[1], this.scissor[2], this.scissor[3]);
}
}
}

Expand Down

0 comments on commit c423902

Please sign in to comment.