|
|
@@ -67,7 +67,7 @@ export const positionWorld = /*@__PURE__*/ ( Fn( ( builder ) => {
|
|
|
|
|
|
return modelWorldMatrix.mul( positionLocal ).xyz.toVarying( builder.getSubBuildProperty( 'v_positionWorld' ) );
|
|
|
|
|
|
-}, 'vec3' ).once( [ 'POSITION' ] ) )();
|
|
|
+}, 'vec3' ).once( [ 'POSITION', 'VERTEX' ] ) )();
|
|
|
|
|
|
/**
|
|
|
* TSL object that represents the position world direction of the current rendered object.
|
|
|
@@ -103,7 +103,7 @@ export const positionView = /*@__PURE__*/ ( Fn( ( builder ) => {
|
|
|
|
|
|
return builder.context.setupPositionView().toVarying( 'v_positionView' );
|
|
|
|
|
|
-}, 'vec3' ).once( [ 'POSITION' ] ) )();
|
|
|
+}, 'vec3' ).once( [ 'POSITION', 'VERTEX' ] ) )();
|
|
|
|
|
|
/**
|
|
|
* TSL object that represents the position view direction of the current rendered object.
|