Browse Source

Accommodate refactoring of Vector3.unproject( camera )

WestLangley 6 years ago
parent
commit
89c39cc3f4
1 changed files with 2 additions and 2 deletions
  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;
 		var w = 1, h = 1;
 
 
-		// we need just camera projection matrix
+		// we need just camera projection matrix inverse
 		// world matrix must be identity
 		// world matrix must be identity
 
 
-		camera.projectionMatrix.copy( this.camera.projectionMatrix );
+		camera.projectionMatrixInverse.copy( this.camera.projectionMatrixInverse );
 
 
 		// center / target
 		// center / target