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

Merge pull request #11457 from 06wj/patch-ray

Optimize Ray.applyMatrix4 performance
......@@ -515,10 +515,8 @@ Object.assign( Ray.prototype, {
applyMatrix4: function ( matrix4 ) {
this.direction.add( this.origin ).applyMatrix4( matrix4 );
this.origin.applyMatrix4( matrix4 );
this.direction.sub( this.origin );
this.direction.normalize();
this.direction.transformDirection( matrix4 );
return this;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册