PerspectiveCamera constructor
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);
}
PerspectiveCamera(this.fov, [this.aspect = 1, this.zNear = 1, this.zFar = 2000]) {
double _fov = MathUtils.degToRad(fov);
projectionMatrix = M4.perspective(_fov, aspect, zNear, zFar);
}