Taos API Reference
    Preparing search index...

    Interface GeoFeatureOptions

    interface GeoFeatureOptions {
        scene: GeoScene;
        fovY?: number;
        cull?: () => boolean;
        dt?: (frame: Frame) => number;
        draw?: () => boolean;
        shadows?: () => boolean;
        materialOverride?: (lodLevel: number) => Material | null;
        cullProjection?: (frame: Frame) => Mat4;
    }
    Index

    Properties

    scene: GeoScene

    The scene to drive.

    fovY?: number

    Vertical field of view in radians for the screen-space-error LOD metric. Default: the live camera's fov, read every frame — so changing the camera FOV just works, and there's no stale value to keep in sync. Pass a number only to override it, e.g. when you also pass a cullProjection built with a different FOV.

    cull?: () => boolean

    Live frustum-cull toggle. Default true.

    dt?: (frame: Frame) => number

    LOD cross-fade dt; return 0 to disable the fade. Default frame.dt.

    draw?: () => boolean

    When false this frame, stream but emit nothing. Default true.

    shadows?: () => boolean

    When false, don't append shadow casters. Default true.

    materialOverride?: (lodLevel: number) => Material | null

    Per-content material override (LOD-debug).

    cullProjection?: (frame: Frame) => Mat4

    The cull projection to extract frustum planes from. Default: the camera's projection (correct as long as the camera's near/far are set in beforeFrame, since the engine caches the projection just after). Supply a freshly-built projection only if you set near/far elsewhere.