Nano WebGPU API - v0.11.0
    Preparing search index...

    Interface CameraOptions

    Configuration options utilized during standard Camera instantiation.

    interface CameraOptions {
        aspect?: number;
        far?: number;
        fov?: number;
        near?: number;
        position?: number | Vec3 | number[];
        target?: number | Vec3 | number[];
    }
    Index

    Properties

    aspect?: number

    Projection aspect ratio (Viewport Width / Viewport Height). Defaults to 1.0.

    far?: number

    Distance to far clipping boundary plane. Defaults to 1000.0.

    fov?: number

    Field of View angle in radians. Defaults to Math.PI / 4 (45 degrees).

    near?: number

    Distance to near clipping boundary plane. Defaults to 0.1.

    position?: number | Vec3 | number[]

    Initial spatial position coordinates of the camera.

    target?: number | Vec3 | number[]

    Spatial focus target coordinate vector for lookAt calculations.