Refactor code
This commit is contained in:
parent
44484e32a1
commit
70a5a98b65
|
@ -143,8 +143,7 @@ document.addEventListener('DOMContentLoaded', () => {
|
|||
width = window.innerWidth;
|
||||
height = window.innerHeight;
|
||||
renderer.setSize(width, height);
|
||||
const aspect = width / height;
|
||||
camera.aspect = aspect;
|
||||
camera.aspect = width / height;
|
||||
camera.updateProjectionMatrix();
|
||||
if (controls) controls.handleResize();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user