PerspectiveCamera constructor

PerspectiveCamera(
  1. double fov, [
  2. double aspect = 1,
  3. double zNear = 1,
  4. double zFar = 2000,
])

Implementation

PerspectiveCamera(this.fov, [this.aspect = 1, this.zNear = 1, this.zFar = 2000]) {
  double _fov = MathUtils.degToRad(fov);
  projectionMatrix = M4.perspective(_fov, aspect, zNear, zFar);
}