Skip to content

Commit

Permalink
CubeTextureNode: Fix assignment.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mugen87 committed Feb 15, 2025
1 parent be4ecdf commit 11826b5
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/nodes/accessors/CubeTextureNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,15 +100,13 @@ class CubeTextureNode extends TextureNode {

const texture = this.value;

let node;

if ( builder.renderer.coordinateSystem === WebGPUCoordinateSystem || ! texture.isRenderTargetTexture ) {

node = vec3( uvNode.x.negate(), uvNode.yz );
uvNode = vec3( uvNode.x.negate(), uvNode.yz );

}

return materialEnvRotation.mul( node );
return materialEnvRotation.mul( uvNode );

}

Expand Down

0 comments on commit 11826b5

Please sign in to comment.