interface CameraState {
    eye: Vec3;
    fov: number;
    projMatrix?: Mat4;
    viewMatrix?: Mat4;
    viewportHeight: number;
}

Properties

eye: Vec3

World-space eye position.

fov: number

Vertical field of view in degrees.

projMatrix?: Mat4

Projection matrix; with viewMatrix, enables frustum culling.

viewMatrix?: Mat4

View matrix; with projMatrix, enables frustum culling.

viewportHeight: number

Viewport height in pixels.