소스 검색

Fixed postprocessing example behavior on window resize.

Finally it was much simpler issue than I thought ;)
alteredq 13 년 전
부모
커밋
b679947437
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      examples/webgl_postprocessing.html

+ 2 - 2
examples/webgl_postprocessing.html

@@ -307,8 +307,8 @@
 
 
 				renderScene.uniforms[ "tDiffuse" ].value = composerScene.renderTarget2;
 				renderScene.uniforms[ "tDiffuse" ].value = composerScene.renderTarget2;
 
 
-				quadBG.scale.set( window.innerWidth, 1, window.innerHeight );
-				quadMask.scale.set( window.innerWidth / 2, 1, window.innerHeight / 2 );
+				quadBG.scale.set( window.innerWidth, window.innerHeight, 1 );
+				quadMask.scale.set( window.innerWidth / 2, window.innerHeight / 2, 1 );
 
 
 			}
 			}