Skip to content

Commit aa50839

Browse files
authored
Clean up (#31412)
1 parent 00b1736 commit aa50839

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

examples/webgl_shadowmap.html

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -146,15 +146,10 @@
146146

147147
function onWindowResize() {
148148

149-
SCREEN_WIDTH = window.innerWidth;
150-
SCREEN_HEIGHT = window.innerHeight;
151-
152-
camera.aspect = SCREEN_WIDTH / SCREEN_HEIGHT;
149+
camera.aspect = window.innerWidth / window.innerHeight;
153150
camera.updateProjectionMatrix();
154151

155-
renderer.setSize( SCREEN_WIDTH, SCREEN_HEIGHT );
156-
157-
controls.handleResize();
152+
renderer.setSize( window.innerWidth, window.innerHeight );
158153

159154
}
160155

0 commit comments

Comments
 (0)