Skip to content

Commit

Permalink
feat(cameras): PerspectiveCamera
Browse files Browse the repository at this point in the history
  • Loading branch information
sakitam-fdd committed May 22, 2022
1 parent 22a7771 commit 0445307
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/cameras/PerspectiveCamera.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import Camera from './Camera';

export default class PerspectiveCamera extends Camera {
constructor(fov, aspect, near, far) {
super({
fov,
aspect,
near,
far,
});
}

updateProjectionMatrix() {
this.projectionMatrix.fromPerspective(this.fov, this.aspect, this.near, this.far);
}
}

0 comments on commit 0445307

Please sign in to comment.