function onWindowResize() {
    camera.aspect = container.offsetWidth / container.offsetHeight;
    camera.updateProjectionMatrix();

    renderer.setSize(container.offsetWidth, container.offsetHeight);
}
function onWindowResize() {
    camera.aspect = container.offsetWidth / container.offsetHeight;
    camera.updateProjectionMatrix();

    renderer.setSize(container.offsetWidth, container.offsetHeight);
}
function onWindowResize ( ) { camera . aspect = container . offsetWidth / container . offsetHeight ; camera . updateProjectionMatrix ( ) ; renderer . setSize ( container . offsetWidth , container . offsetHeight ) ; }
Handle window resize
Handle window resize