Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Start rendering
- //... Other code snippet
- window.addEventListener( 'resize', function() {
- camera.aspect = window.innerWidth / window.innerHeight;
- camera.updateProjectionMatrix();
- renderer.setSize( window.innerWidth, window.innerHeight );
- });
Advertisement
Add Comment
Please, Sign In to add comment