提交 68d88cc7 编写于 作者: M Mr.doob

Updated builds.

上级 be57a9cf
......@@ -3627,6 +3627,8 @@
if ( z.lengthSq() === 0 ) {
// eye and target are in the same position
z.z = 1;
}
......@@ -3636,15 +3638,10 @@
if ( x.lengthSq() === 0 ) {
var t = Math.PI / 2;
var c = Math.cos( t ) * z.y;
var s = Math.sin( t ) * z.y;
te[ 0 ] = 1; te[ 4 ] = 0; te[ 8 ] = 0;
te[ 1 ] = 0; te[ 5 ] = c; te[ 9 ] = s;
te[ 2 ] = 0; te[ 6 ] = - s; te[ 10 ] = c;
// eye and target are in the same vertical
return this;
z.z += 0.0001;
x.crossVectors( up, z );
}
......
此差异已折叠。
......@@ -3621,6 +3621,8 @@ Object.assign( Matrix4.prototype, {
if ( z.lengthSq() === 0 ) {
// eye and target are in the same position
z.z = 1;
}
......@@ -3630,15 +3632,10 @@ Object.assign( Matrix4.prototype, {
if ( x.lengthSq() === 0 ) {
var t = Math.PI / 2;
var c = Math.cos( t ) * z.y;
var s = Math.sin( t ) * z.y;
te[ 0 ] = 1; te[ 4 ] = 0; te[ 8 ] = 0;
te[ 1 ] = 0; te[ 5 ] = c; te[ 9 ] = s;
te[ 2 ] = 0; te[ 6 ] = - s; te[ 10 ] = c;
// eye and target are in the same vertical
return this;
z.z += 0.0001;
x.crossVectors( up, z );
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册