浏览代码

Cleanup onWindowResize for procedural postprocessing example (#26434)

Nathan Bierema 2 年之前
父节点
当前提交
b21c398908
共有 1 个文件被更改,包括 1 次插入7 次删除
  1. 1 7
      examples/webgl_postprocessing_procedural.html

+ 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 );
 
 			}