We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef887d4 commit 0ea6b93Copy full SHA for 0ea6b93
src/nodes/accessors/Tangent.js
@@ -11,17 +11,7 @@ import { directionToFaceDirection } from '../display/FrontFacingNode.js';
11
* @tsl
12
* @type {Node<vec4>}
13
*/
14
-export const tangentGeometry = /*@__PURE__*/ Fn( ( builder ) => {
15
-
16
- if ( builder.geometry.hasAttribute( 'tangent' ) === false ) {
17
18
- builder.geometry.computeTangents();
19
20
- }
21
22
- return attribute( 'tangent', 'vec4' );
23
24
-} )();
+export const tangentGeometry = /*@__PURE__*/ attribute( 'tangent', 'vec4' );
25
26
/**
27
* TSL object that represents the vertex tangent in local space of the current rendered object.
0 commit comments