@pmndrs/bvh
    Preparing search index...

    Interface GpuRayHit

    One closest hit, decoded from the batch kernel's 40-byte record (HIT_RECORD_WORD).

    interface GpuRayHit {
        barycentrics: readonly [number, number];
        frontFace: boolean;
        instance: number;
        material: number;
        normal: readonly [number, number, number];
        t: number;
        triangle: number;
    }
    Index
    barycentrics: readonly [number, number]

    Barycentrics of the second and third corners.

    frontFace: boolean

    The authored front side was hit.

    instance: number

    The hit instance's instanceIndex (a merged triangle's source instance).

    material: number

    The triangle's or instance's material, or NO_MATERIAL.

    normal: readonly [number, number, number]

    The authored front side's unit normal, world space.

    t: number

    Distance along the ray.

    triangle: number

    The triangle's index in its source mesh.