Skip to content

Commit f607b53

Browse files
committed
Fix Camera.slerp crash with orthographic projection
1 parent f19664a commit f607b53

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/webgl/p5.Camera.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1602,8 +1602,7 @@ class Camera {
16021602
);
16031603
// If the camera is active, make uPMatrix reflect changes in projMatrix.
16041604
if (this._isActive()) {
1605-
this._renderer.states.setValue('uPMatrix', this._renderer.states.uPMatrix.clone());
1606-
this._renderer.states.uPMatrix.mat4 = this.projMatrix.mat4.slice();
1605+
this._renderer.states.setValue('uPMatrix', this.projMatrix.clone());
16071606
}
16081607
}
16091608

0 commit comments

Comments
 (0)