updateForWindowResize method

dynamic updateForWindowResize()

Implementation

updateForWindowResize() {
  if (enabled) {
    camera.left = innerWidth / -2;
    camera.right = innerWidth / 2;
    camera.top = innerHeight / 2;
    camera.bottom = innerHeight / -2;
    camera.updateProjectionMatrix();

    update();
  }
}