Skip to content

Commit 89c39cc

Browse files
committed
Accommodate refactoring of Vector3.unproject( camera )
1 parent 8bad3a4 commit 89c39cc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/helpers/CameraHelper.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,10 +158,10 @@ CameraHelper.prototype.update = function () {
158158

159159
var w = 1, h = 1;
160160

161-
// we need just camera projection matrix
161+
// we need just camera projection matrix inverse
162162
// world matrix must be identity
163163

164-
camera.projectionMatrix.copy( this.camera.projectionMatrix );
164+
camera.projectionMatrixInverse.copy( this.camera.projectionMatrixInverse );
165165

166166
// center / target
167167

0 commit comments

Comments
 (0)