|
|
@@ -11,17 +11,7 @@ import { directionToFaceDirection } from '../display/FrontFacingNode.js';
|
|
|
* @tsl
|
|
|
* @type {Node<vec4>}
|
|
|
*/
|
|
|
-export const tangentGeometry = /*@__PURE__*/ Fn( ( builder ) => {
|
|
|
-
|
|
|
- if ( builder.geometry.hasAttribute( 'tangent' ) === false ) {
|
|
|
-
|
|
|
- builder.geometry.computeTangents();
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- return attribute( 'tangent', 'vec4' );
|
|
|
-
|
|
|
-} )();
|
|
|
+export const tangentGeometry = /*@__PURE__*/ attribute( 'tangent', 'vec4' );
|
|
|
|
|
|
/**
|
|
|
* TSL object that represents the vertex tangent in local space of the current rendered object.
|