Pārlūkot izejas kodu

fix resize window

SUNAG 10 gadi atpakaļ
vecāks
revīzija
86c290a276

+ 1 - 0
examples/webgl_postprocessing.html

@@ -97,6 +97,7 @@
 				camera.updateProjectionMatrix();
 				camera.updateProjectionMatrix();
 
 
 				renderer.setSize( window.innerWidth, window.innerHeight );
 				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();
 				camera.updateProjectionMatrix();
 
 
 				renderer.setSize( window.innerWidth, window.innerHeight );
 				renderer.setSize( window.innerWidth, window.innerHeight );
+				composer.setSize( window.innerWidth, window.innerHeight );
 
 
 
 
 			}
 			}