Skip to content

Commit

Permalink
Merge pull request #7154 from davepagurek/fix/panorama
Browse files Browse the repository at this point in the history
Fix panorama()
  • Loading branch information
davepagurek authored Jul 30, 2024
2 parents 4fd2508 + b6c350a commit 4216eaf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/webgl/p5.RendererGL.js
Original file line number Diff line number Diff line change
Expand Up @@ -1727,7 +1727,7 @@ p5.RendererGL = class RendererGL extends p5.Renderer {
sphereMapping
);
}
this.uNMatrix.inverseTranspose(this.uMVMatrix);
this.uNMatrix.inverseTranspose(this.uViewMatrix);
this.uNMatrix.invert3x3(this.uNMatrix);
this.sphereMapping.setUniform('uFovY', this._curCamera.cameraFOV);
this.sphereMapping.setUniform('uAspect', this._curCamera.aspectRatio);
Expand Down

0 comments on commit 4216eaf

Please sign in to comment.