Browse Source

Fixed postprocessing example behavior on window resize.

Finally it was much simpler issue than I thought ;)
alteredq 13 years ago
parent
commit
b679947437
1 changed files with 2 additions and 2 deletions
  1. 2 2
      examples/webgl_postprocessing.html

+ 2 - 2
examples/webgl_postprocessing.html

@@ -307,8 +307,8 @@
 
 				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 );
 
 			}