@pmndrs/reflections
    Preparing search index...

    Interface ThreeRaytracerTraceProvider

    A core @pmndrs/raytracer provider plus the three objects behind it, so it can follow them.

    interface ThreeRaytracerTraceProvider {
        materialSources: ({ mesh: Mesh } & HitMaterialSource)[];
        provider: RaytracerTraceProvider;
        scene: BvhTraceScene;
        sources: { instanceId: number; mesh: Mesh }[];
        materialIdOf(mesh: Mesh, materialIndex?: number): number | undefined;
        refit(): void;
    }

    Hierarchy (View Summary)

    Index
    materialSources: ({ mesh: Mesh } & HitMaterialSource)[]

    What made each entry of scene.materials: the (first) mesh asked and which of its materials.

    sources: { instanceId: number; mesh: Mesh }[]

    The mesh behind each instance, and its InstancedMesh index (-1 for a plain mesh).

    • The scene.materials entry a hit on mesh with three's face.materialIndex reports (the group's material for a multi-material mesh, else the mesh's), or undefined for a mesh not traced.

      Parameters

      • mesh: Mesh
      • OptionalmaterialIndex: number

      Returns number | undefined