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

Matrix4.lookAt(): Added comments.

上级 028a2519
......@@ -326,6 +326,8 @@ Object.assign( Matrix4.prototype, {
if ( z.lengthSq() === 0 ) {
// eye and target are in the same position
z.z = 1;
}
......@@ -335,6 +337,8 @@ Object.assign( Matrix4.prototype, {
if ( x.lengthSq() === 0 ) {
// eye and target are in the same vertical
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.
先完成此消息的编辑!
想要评论请 注册