Explorar o código

remove unnecessary calculation in Vector3.project

zhaoy %!s(int64=7) %!d(string=hai) anos
pai
achega
9796f88f0c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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 );
 
 		};