Prechádzať zdrojové kódy

Cleanup onWindowResize for procedural postprocessing example (#26434)

Nathan Bierema 2 rokov pred
rodič
commit
b21c398908

+ 1 - 7
examples/webgl_postprocessing_procedural.html

@@ -130,13 +130,7 @@
 
 			function onWindowResize() {
 
-				const width = window.innerWidth;
-				const height = window.innerHeight;
-
-				postCamera.aspect = width / height;
-				postCamera.updateProjectionMatrix();
-
-				renderer.setSize( width, height );
+				renderer.setSize( window.innerWidth, window.innerHeight );
 
 			}