Skip to content

Commit

Permalink
Wind Waker: Fix inverted cameraFwd vector
Browse files Browse the repository at this point in the history
  • Loading branch information
themikelester committed Dec 27, 2024
1 parent 469c174 commit 5e1d673
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ZeldaWindWaker/Main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,7 @@ export class dCamera_c {
mat4.mul(this.clipFromWorldMatrix, this.clipFromViewMatrix, this.viewFromWorldMatrix);
getMatrixTranslation(this.cameraPos, this.worldFromViewMatrix);
getMatrixAxisZ(this.cameraFwd, this.worldFromViewMatrix);
vec3.negate(this.cameraFwd, this.cameraFwd);
this.frustum.updateClipFrustum(this.clipFromWorldMatrix, this.clipSpaceNearZ);
}

Expand Down

0 comments on commit 5e1d673

Please sign in to comment.