setFov method

dynamic setFov(
  1. dynamic value
)
  • Set camera fov
    • @param {Number} value fov to be setted

Implementation

setFov(value) {
  if (this.camera is PerspectiveCamera) {
    this.camera.fov = MathUtils.clamp(value, this.minFov, this.maxFov);
    this.camera.updateProjectionMatrix();
  }
}