updateForWindowResize method

dynamic updateForWindowResize()

Implementation

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

    this.update();
  }
}