Explorar o código

TSL: Do not auto-generate tangent attribute. (#32220)

Michael Herzog hai 3 meses
pai
achega
0ea6b9311c
Modificáronse 1 ficheiros con 1 adicións e 11 borrados
  1. 1 11
      src/nodes/accessors/Tangent.js

+ 1 - 11
src/nodes/accessors/Tangent.js

@@ -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.

粤ICP备19079148号