src/core/World.js
// used when the browser window is resized
used when the browser window is resized
used when the browser window is resized
function onWindowResize() {
	const width = window.innerWidth;
	const height = window.innerHeight;
	this.camera.aspect = width / height;
	this.camera.updateProjectionMatrix();
	this.renderer.setSize( width, height );
	this.uiManager.setSize( width, height );
}
function onWindowResize ( ) { const width = window . innerWidth ; const height = window . innerHeight ; this . camera . aspect = width / height ; this . camera . updateProjectionMatrix ( ) ; this . renderer . setSize ( width , height ) ; this . uiManager . setSize ( width , height ) ; }
used when the browser window is resized
used when the browser window is resized