Explorar o código

StereoCamera: Fixed projectionMatrix reference.

Mr.doob %!s(int64=9) %!d(string=hai) anos
pai
achega
cdd6e42a93
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/cameras/StereoCamera.js

+ 1 - 1
src/cameras/StereoCamera.js

@@ -47,7 +47,7 @@ THREE.StereoCamera.prototype.updateMatrixWorld = ( function () {
 			near = this.near;
 			far = this.far;
 
-			var projectionMatrix = camera.projectionMatrix.clone();
+			var projectionMatrix = this.projectionMatrix.clone();
 			var eyeSep = focalLength / 30 * 0.5;
 			var eyeSepOnProjection = eyeSep * near / focalLength;
 			var ymax = near * Math.tan( THREE.Math.degToRad( fov * 0.5 ) );