File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -535,9 +535,9 @@ class NodeMaterial extends Material {
535535
536536 builder . addStack ( ) ;
537537
538- const mvp = subBuild ( this . setupVertex ( builder ) , 'VERTEX' ) ;
538+ const mvp = this . setupVertex ( builder ) ;
539539
540- const vertexNode = this . vertexNode || mvp ;
540+ const vertexNode = subBuild ( this . vertexNode || mvp , 'VERTEX' ) ;
541541
542542 builder . context . clipSpace = vertexNode ;
543543
Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ export const positionWorld = /*@__PURE__*/ ( Fn( ( builder ) => {
6767
6868 return modelWorldMatrix . mul ( positionLocal ) . xyz . toVarying ( builder . getSubBuildProperty ( 'v_positionWorld' ) ) ;
6969
70- } , 'vec3' ) . once ( [ 'POSITION' ] ) ) ( ) ;
70+ } , 'vec3' ) . once ( [ 'POSITION' , 'VERTEX' ] ) ) ( ) ;
7171
7272/**
7373 * TSL object that represents the position world direction of the current rendered object.
@@ -103,7 +103,7 @@ export const positionView = /*@__PURE__*/ ( Fn( ( builder ) => {
103103
104104 return builder . context . setupPositionView ( ) . toVarying ( 'v_positionView' ) ;
105105
106- } , 'vec3' ) . once ( [ 'POSITION' ] ) ) ( ) ;
106+ } , 'vec3' ) . once ( [ 'POSITION' , 'VERTEX' ] ) ) ( ) ;
107107
108108/**
109109 * TSL object that represents the position view direction of the current rendered object.
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ class VaryingNode extends Node {
3636 *
3737 * @type {Node }
3838 */
39- this . node = node ;
39+ this . node = subBuild ( node , 'VERTEX' ) ;
4040
4141 /**
4242 * The name of the varying in the shader. If no name is defined,
You can’t perform that action at this time.
0 commit comments