myjs.js
/**
 * Events to fire upon window resizing.
 */
Events to fire upon window resizing.
Events to fire upon window resizing .
function onWindowResize() {
  camera.aspect = window.innerWidth / window.innerHeight;
  camera.updateProjectionMatrix();
  renderer.setSize(window.innerWidth, window.innerHeight);
  effect.setSize(window.innerWidth, window.innerHeight);
}
function onWindowResize ( ) { camera . aspect = window . innerWidth / window . innerHeight ; camera . updateProjectionMatrix ( ) ; renderer . setSize ( window . innerWidth , window . innerHeight ) ; effect . setSize ( window . innerWidth , window . innerHeight ) ; }
Events to fire upon window resizing.
Events to fire upon window resizing .