@pmndrs/reflections
    Preparing search index...

    Interface HitMaterialSource

    Which of a mesh's materials a hit material is asked for (W49, D1701 / D1702). A mesh with an array of materials and geometry groups is asked once per material its groups draw with; any other mesh once, for its material (the first of an array without groups, materialIndex 0).

    interface HitMaterialSource {
        material: Material<MaterialEventMap> | undefined;
        materialIndex: number;
    }
    Index
    material: Material<MaterialEventMap> | undefined

    The three material: the mesh's, or mesh.material[materialIndex].

    materialIndex: number

    Index into the mesh's array of materials, or -1 for a mesh with one material.