提交 3d469723 编写于 作者: M Mr.doob

Updated builds.

上级 771df2c7
......@@ -9991,7 +9991,8 @@
var normalMatrix = new Matrix3().getNormalMatrix( matrix );
normalMatrix.applyToBufferAttribute( normal );
normal.applyNormalMatrix( normalMatrix );
normal.needsUpdate = true;
}
......@@ -10000,10 +10001,8 @@
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;
}
因为 它太大了无法显示 source diff 。你可以改为 查看blob
......@@ -9985,7 +9985,8 @@ BufferGeometry.prototype = Object.assign( Object.create( EventDispatcher.prototy
var normalMatrix = new Matrix3().getNormalMatrix( matrix );
normalMatrix.applyToBufferAttribute( normal );
normal.applyNormalMatrix( normalMatrix );
normal.needsUpdate = true;
}
......@@ -9994,10 +9995,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;
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册