Skip to content

Commit

Permalink
Nodes: Add mat4 format to cameraProjectionMatrixInverse (#27579)
Browse files Browse the repository at this point in the history
* camera proj inverse was missing

* apply mat4 to projectionMatrixInverse
  • Loading branch information
RenaudRohlinger committed Jan 17, 2024
1 parent 21b6b50 commit b8b82d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/jsm/nodes/accessors/CameraNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class CameraNode extends Object3DNode {

const scope = this.scope;

if ( scope === CameraNode.PROJECTION_MATRIX ) {
if ( scope === CameraNode.PROJECTION_MATRIX || scope === CameraNode.PROJECTION_MATRIX_INVERSE ) {

return 'mat4';

Expand Down Expand Up @@ -83,7 +83,7 @@ class CameraNode extends Object3DNode {

const scope = this.scope;

if ( scope === CameraNode.PROJECTION_MATRIX ) {
if ( scope === CameraNode.PROJECTION_MATRIX || scope === CameraNode.PROJECTION_MATRIX_INVERSE ) {

this._uniformNode.nodeType = 'mat4';

Expand Down

0 comments on commit b8b82d9

Please sign in to comment.