|
@@ -140,7 +140,8 @@ BufferGeometry.prototype = Object.assign( Object.create( EventDispatcher.prototy
|
|
|
|
|
|
var normalMatrix = new Matrix3().getNormalMatrix( matrix );
|
|
|
|
|
|
- normalMatrix.applyToBufferAttribute( normal );
|
|
|
+ normal.applyNormalMatrix( normalMatrix );
|
|
|
+
|
|
|
normal.needsUpdate = true;
|
|
|
|
|
|
}
|
|
@@ -149,10 +150,8 @@ BufferGeometry.prototype = Object.assign( Object.create( EventDispatcher.prototy
|
|
|
|
|
|
if ( tangent !== undefined ) {
|
|
|
|
|
|
- var normalMatrix = new Matrix3().getNormalMatrix( matrix );
|
|
|
+ tangent.transformDirection( matrix );
|
|
|
|
|
|
- // Tangent is vec4, but the '.w' component is a sign value (+1/-1).
|
|
|
- normalMatrix.applyToBufferAttribute( tangent );
|
|
|
tangent.needsUpdate = true;
|
|
|
|
|
|
}
|