Sfoglia il codice sorgente

StereoCamera: Fixed projectionMatrix reference.

Mr.doob 9 anni fa
parent
commit
cdd6e42a93
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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 ) );