@@ -35,23 +35,23 @@ export const positionPrevious = /*@__PURE__*/ positionGeometry.toVarying( 'posit
3535 */
3636export const positionWorld = /*@__PURE__ */ ( Fn ( ( builder ) => {
3737
38- return modelWorldMatrix . mul ( positionLocal ) . xyz . toVarying ( builder . getNamespace ( 'v_positionWorld' ) ) ;
38+ return modelWorldMatrix . mul ( positionLocal ) . xyz . toVarying ( builder . getSubBuildProperty ( 'v_positionWorld' ) ) ;
3939
40- } , 'vec3' ) . once ( 'POSITION' ) ) ( ) ;
40+ } , 'vec3' ) . once ( [ 'POSITION' ] ) ) ( ) ;
4141
4242/**
4343 * TSL object that represents the position world direction of the current rendered object.
4444 *
4545 * @tsl
4646 * @type {Node<vec3> }
4747 */
48- export const positionWorldDirection = /*@__PURE__ */ ( Fn ( ( builder ) => {
48+ export const positionWorldDirection = /*@__PURE__ */ ( Fn ( ( ) => {
4949
50- const vertexPWD = positionLocal . transformDirection ( modelWorldMatrix ) . toVarying ( builder . getNamespace ( 'v_positionWorldDirection' ) ) ;
50+ const vertexPWD = positionLocal . transformDirection ( modelWorldMatrix ) . toVarying ( 'v_positionWorldDirection' ) ;
5151
5252 return vertexPWD . normalize ( ) . toVar ( 'positionWorldDirection' ) ;
5353
54- } , 'vec3' ) . once ( 'POSITION' ) ) ( ) ;
54+ } , 'vec3' ) . once ( [ 'POSITION' ] ) ) ( ) ;
5555
5656/**
5757 * TSL object that represents the vertex position in view space of the current rendered object.
@@ -61,9 +61,9 @@ export const positionWorldDirection = /*@__PURE__*/ ( Fn( ( builder ) => {
6161 */
6262export const positionView = /*@__PURE__ */ ( Fn ( ( builder ) => {
6363
64- return builder . context . setupPositionView ( ) . toVarying ( builder . getNamespace ( 'v_positionView' ) ) ;
64+ return builder . context . setupPositionView ( ) . toVarying ( 'v_positionView' ) ;
6565
66- } , 'vec3' ) . once ( 'POSITION' ) ) ( ) ;
66+ } , 'vec3' ) . once ( [ 'POSITION' ] ) ) ( ) ;
6767
6868/**
6969 * TSL object that represents the position view direction of the current rendered object.
0 commit comments