Skip to content

Commit 0ea6b93

Browse files
authored
TSL: Do not auto-generate tangent attribute. (#32220)
1 parent ef887d4 commit 0ea6b93

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

src/nodes/accessors/Tangent.js

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,7 @@ import { directionToFaceDirection } from '../display/FrontFacingNode.js';
1111
* @tsl
1212
* @type {Node<vec4>}
1313
*/
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-
} )();
14+
export const tangentGeometry = /*@__PURE__*/ attribute( 'tangent', 'vec4' );
2515

2616
/**
2717
* TSL object that represents the vertex tangent in local space of the current rendered object.

0 commit comments

Comments
 (0)