From 2467ca0168cbc9aa9828a54fe09ec76b8e85f1b3 Mon Sep 17 00:00:00 2001 From: Nathan Bierema Date: Fri, 14 Jul 2023 22:36:25 -0400 Subject: [PATCH] Cleanup onWindowResize for procedural postprocessing example --- examples/webgl_postprocessing_procedural.html | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/examples/webgl_postprocessing_procedural.html b/examples/webgl_postprocessing_procedural.html index fc51620518e689..71242b63a80069 100644 --- a/examples/webgl_postprocessing_procedural.html +++ b/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 ); }