Skip to content

Commit

Permalink
Wind Waker: Add toggleable dCamera_c.enableLetterboxing
Browse files Browse the repository at this point in the history
  • Loading branch information
themikelester committed Dec 27, 2024
1 parent b1f68e1 commit 469c174
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 @@ -235,6 +235,7 @@ export class dCamera_c {

// For people to play around with.
public frozen = false;
public enableLetterboxing = true;

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

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

Expand Down

0 comments on commit 469c174

Please sign in to comment.