@pmndrs/bvh
    Preparing search index...

    Variable MATERIAL_SHIFTConst

    MATERIAL_SHIFT: 16

    The material: bits 16-31 of the instance flags word, and of the triangle flags word (a mesh input's triangleMaterials; in a merged mesh, its source's), stored as material + 1 so that 0 means none. A hit's material (hitMaterialCode) is the triangle's when it has one, else the instance's; the walk reports it as BvhHit.material, NO_MATERIAL for none. Indexed scenes keep the triangle's code in a per-mesh table instead (MESH_HEADER_WORD.materialTableDistance, or a merged side table). Written only by this package; a mesh input's triangleFlags may still set bit 0 only.