提交 c4a5f027 编写于 作者: W WestLangley

add build

上级 bdc8146a
......@@ -5012,8 +5012,9 @@ THREE.Geometry.prototype = {
applyMatrix: function ( matrix ) {
var matrixRotation = new THREE.Matrix4();
matrixRotation.extractRotation( matrix );
var normalMatrix = new THREE.Matrix3();
normalMatrix.getInverse( matrix ).transpose();
for ( var i = 0, il = this.vertices.length; i < il; i ++ ) {
......@@ -5027,11 +5028,11 @@ THREE.Geometry.prototype = {
var face = this.faces[ i ];
matrixRotation.multiplyVector3( face.normal );
normalMatrix.multiplyVector3( face.normal ).normalize();
for ( var j = 0, jl = face.vertexNormals.length; j < jl; j ++ ) {
matrixRotation.multiplyVector3( face.vertexNormals[ j ] );
normalMatrix.multiplyVector3( face.vertexNormals[ j ] ).normalize();
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册