@pmndrs/bvh
    Preparing search index...

    Interface StaticMergeGroup

    One merged mesh: what to build, and the ids assembly writes into the built records.

    interface StaticMergeGroup {
        contributesToGi: boolean;
        flipFrontFace: Uint8Array;
        geometry: MeshGeometry;
        mask: number;
        sourceInstances: Uint32Array;
        sourceMaterials: Uint16Array;
        sources: readonly StaticMergeSource[];
        sourceTriangles: Uint32Array;
        visible: boolean;
    }
    Index
    contributesToGi: boolean

    Always true: instances that don't contribute to GI, or aren't visible, never merge.

    flipFrontFace: Uint8Array

    Per triangle of geometry: 1 when it comes from a mirrored source (TRIANGLE_FLAG_FLIP_FRONT_FACE).

    geometry: MeshGeometry

    World-space positions (each source vertex transformed once), Uint32Array indices, and the sources' triangle flags (filter bit).

    mask: number

    The sources' mask (0-255, 0xff when they give none).

    sourceInstances: Uint32Array

    Per triangle of geometry: the source instance index (TraceSceneInstance.instanceIndex).

    sourceMaterials: Uint16Array

    Per triangle of geometry: its material as stored in flags bits 16-31 (material + 1, 0 for none): the source mesh's triangleMaterials entry, else the source instance's material. The group's geometry carries no materials; assembly writes these.

    sources: readonly StaticMergeSource[]
    sourceTriangles: Uint32Array

    Per triangle of geometry: the triangle's index in its source mesh.

    visible: boolean

    Always true (see contributesToGi).