Skip to content

Commit

Permalink
Cleanup onWindowResize for procedural postprocessing example (#26434)
Browse files Browse the repository at this point in the history
  • Loading branch information
Methuselah96 authored Jul 15, 2023
1 parent 6aff9a6 commit b21c398
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions examples/webgl_postprocessing_procedural.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 );

}

Expand Down

0 comments on commit b21c398

Please sign in to comment.