threejs-worldgen
    Preparing search index...

    Interface ImpostorOptions

    How an impostor is baked and drawn.

    interface ImpostorOptions {
        alphaTest: number;
        frames: number;
        hemisphere: boolean;
        mode: "octahedral" | "billboard";
        size: number;
    }
    Index
    alphaTest: number

    Alpha below which impostor pixels are discarded.

    frames: number

    Views per atlas side (octahedral mode). 8 = 64 views.

    hemisphere: boolean

    Only bake views from above the horizon (better resolution for things seen from the ground).

    mode: "octahedral" | "billboard"

    'octahedral': frames × frames views over the (hemi)sphere; the quad shows whichever view is closest to the camera direction, so the object turns correctly as you walk around it. 'billboard': one side view on a quad that turns around the vertical axis. Cheaper to bake, 4× less memory per view, fine for symmetric objects far away.

    size: number

    Atlas width and height in pixels. Each view gets size / frames pixels.