Selaa lähdekoodia

WebGLRenderer: Copy camera.projectionMatrix.

Mr.doob 9 vuotta sitten
vanhempi
commit
e4324dc122
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      src/renderers/WebGLRenderer.js

+ 1 - 1
src/renderers/WebGLRenderer.js

@@ -1169,7 +1169,7 @@ THREE.WebGLRenderer = function ( parameters ) {
 
 		} else if ( background instanceof THREE.CubeTexture ) {
 
-			backgroundCamera2.projectionMatrix = camera.projectionMatrix;
+			backgroundCamera2.projectionMatrix.copy( camera.projectionMatrix );
 
 			backgroundCamera2.matrixWorld.extractRotation( camera.matrixWorld );
 			backgroundCamera2.matrixWorldInverse.getInverse( backgroundCamera2.matrixWorld );