소스 검색

remove unnecessary calculation in Vector3.project

zhaoy 7 년 전
부모
커밋
9796f88f0c
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/math/Vector3.js

+ 1 - 1
src/math/Vector3.js

@@ -318,7 +318,7 @@ Object.assign( Vector3.prototype, {
 
 		return function project( camera ) {
 
-			matrix.multiplyMatrices( camera.projectionMatrix, matrix.getInverse( camera.matrixWorld ) );
+			matrix.multiplyMatrices( camera.projectionMatrix, camera.matrixWorldInverse );
 			return this.applyMatrix4( matrix );
 
 		};