Add diffrent camera modes

This commit is contained in:
2026-02-04 22:41:53 +01:00
parent 86d6da33d2
commit 52c2e1dacd
5 changed files with 290 additions and 20 deletions

11
src/ICamera.ts Normal file
View File

@@ -0,0 +1,11 @@
import { vec3, mat4 } from 'gl-matrix';
/** Camera interface that both camera types implement */
export interface ICamera {
pos: vec3;
target: vec3;
up: vec3;
getViewMatrix(): mat4;
getViewDirection(): vec3;
}