소스 검색

WebGLRenderer: Copy camera.projectionMatrix.

Mr.doob 9 년 전
부모
커밋
e4324dc122
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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 );