Browse Source

WebGLRenderer: Copy camera.projectionMatrix.

Mr.doob 9 years ago
parent
commit
e4324dc122
1 changed files with 1 additions and 1 deletions
  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 );