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