瀏覽代碼

Accommodate refactoring of Vector3.unproject( camera )

WestLangley 6 年之前
父節點
當前提交
89c39cc3f4
共有 1 個文件被更改,包括 2 次插入2 次删除
  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