Skip to content

Commit b21c398

Browse files
authored
Cleanup onWindowResize for procedural postprocessing example (#26434)
1 parent 6aff9a6 commit b21c398

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

examples/webgl_postprocessing_procedural.html

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -130,13 +130,7 @@
130130

131131
function onWindowResize() {
132132

133-
const width = window.innerWidth;
134-
const height = window.innerHeight;
135-
136-
postCamera.aspect = width / height;
137-
postCamera.updateProjectionMatrix();
138-
139-
renderer.setSize( width, height );
133+
renderer.setSize( window.innerWidth, window.innerHeight );
140134

141135
}
142136

0 commit comments

Comments
 (0)