Skip to content

Commit 11826b5

Browse files
committed
CubeTextureNode: Fix assignment.
1 parent be4ecdf commit 11826b5

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/nodes/accessors/CubeTextureNode.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,15 +100,13 @@ class CubeTextureNode extends TextureNode {
100100

101101
const texture = this.value;
102102

103-
let node;
104-
105103
if ( builder.renderer.coordinateSystem === WebGPUCoordinateSystem || ! texture.isRenderTargetTexture ) {
106104

107-
node = vec3( uvNode.x.negate(), uvNode.yz );
105+
uvNode = vec3( uvNode.x.negate(), uvNode.yz );
108106

109107
}
110108

111-
return materialEnvRotation.mul( node );
109+
return materialEnvRotation.mul( uvNode );
112110

113111
}
114112

0 commit comments

Comments
 (0)