Browse Source

fix resize window

SUNAG 9 years ago
parent
commit
86c290a276
2 changed files with 2 additions and 0 deletions
  1. 1 0
      examples/webgl_postprocessing.html
  2. 1 0
      examples/webgl_postprocessing_glitch.html

+ 1 - 0
examples/webgl_postprocessing.html

@@ -97,6 +97,7 @@
 				camera.updateProjectionMatrix();
 
 				renderer.setSize( window.innerWidth, window.innerHeight );
+				composer.setSize( window.innerWidth, window.innerHeight );
 
 			}
 

+ 1 - 0
examples/webgl_postprocessing_glitch.html

@@ -120,6 +120,7 @@
 				camera.updateProjectionMatrix();
 
 				renderer.setSize( window.innerWidth, window.innerHeight );
+				composer.setSize( window.innerWidth, window.innerHeight );
 
 
 			}