Created
March 28, 2020 09:40
-
-
Save RenaudRohlinger/6b44e3832798c14209735db318571c99 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function resize () { | |
renderer.height = window.innerHeight; | |
renderer.width = window.innerWidth; | |
renderer.setSize(renderer.width, renderer.height); | |
camera.aspect = renderer.width / renderer.height; | |
camera.updateProjectionMatrix(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment