Explorar el Código

Accommodate refactoring of Vector3.unproject( camera )

WestLangley hace 6 años
padre
commit
89c39cc3f4
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      src/helpers/CameraHelper.js

+ 2 - 2
src/helpers/CameraHelper.js

@@ -158,10 +158,10 @@ CameraHelper.prototype.update = function () {
 
 		var w = 1, h = 1;
 
-		// we need just camera projection matrix
+		// we need just camera projection matrix inverse
 		// world matrix must be identity
 
-		camera.projectionMatrix.copy( this.camera.projectionMatrix );
+		camera.projectionMatrixInverse.copy( this.camera.projectionMatrixInverse );
 
 		// center / target