Taos API Reference
    Preparing search index...

    Interface CameraOptions

    Construction options for Camera. Every field is optional and maps to the like-named property; omitted fields keep the property default. fov is in radians (the raw property) — for degrees use Camera.createPerspective.

    interface CameraOptions {
        projectionType?: CameraProjection;
        fov?: number;
        orthoSize?: number;
        near?: number;
        far?: number;
        aspect?: number;
        clearFlags?: CameraClearFlags;
        clearColor?: Vec4;
        clearDepth?: number;
        clearStencil?: number;
    }
    Index

    Properties

    projectionType?: CameraProjection

    Projection type (Camera.projectionType).

    fov?: number

    Vertical field of view in radians (Camera.fov).

    orthoSize?: number

    Orthographic height (Camera.orthoSize).

    near?: number

    Near clip plane distance (Camera.near). Default 0.1.

    far?: number

    Far clip plane distance (Camera.far). Default 1000.

    aspect?: number

    Width / height aspect ratio (Camera.aspect). Default 16/9 (synced to the canvas each frame).

    clearFlags?: CameraClearFlags

    Clear flags (Camera.clearFlags).

    clearColor?: Vec4

    Clear color (Camera.clearColor). Adopted by reference.

    clearDepth?: number

    Clear depth value (Camera.clearDepth).

    clearStencil?: number

    Clear stencil value (Camera.clearStencil).