We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 00b1736 commit aa50839Copy full SHA for aa50839
examples/webgl_shadowmap.html
@@ -146,15 +146,10 @@
146
147
function onWindowResize() {
148
149
- SCREEN_WIDTH = window.innerWidth;
150
- SCREEN_HEIGHT = window.innerHeight;
151
-
152
- camera.aspect = SCREEN_WIDTH / SCREEN_HEIGHT;
+ camera.aspect = window.innerWidth / window.innerHeight;
153
camera.updateProjectionMatrix();
154
155
- renderer.setSize( SCREEN_WIDTH, SCREEN_HEIGHT );
156
157
- controls.handleResize();
+ renderer.setSize( window.innerWidth, window.innerHeight );
158
159
}
160
0 commit comments