We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f19664a commit f607b53Copy full SHA for f607b53
1 file changed
src/webgl/p5.Camera.js
@@ -1602,8 +1602,7 @@ class Camera {
1602
);
1603
// If the camera is active, make uPMatrix reflect changes in projMatrix.
1604
if (this._isActive()) {
1605
- this._renderer.states.setValue('uPMatrix', this._renderer.states.uPMatrix.clone());
1606
- this._renderer.states.uPMatrix.mat4 = this.projMatrix.mat4.slice();
+ this._renderer.states.setValue('uPMatrix', this.projMatrix.clone());
1607
}
1608
1609
0 commit comments