@pixi/3d
    Preparing search index...

    Type Alias MaterialOverrides

    MaterialOverrides:
        | Readonly<Record<string, BaseMaterial3D>>
        | readonly (BaseMaterial3D | undefined)[]
        | ((material: BaseMaterial3D) => BaseMaterial3D)

    The materials a Model3D draws instead of its source's

    • A record, by material label: every source material with that label is replaced. The glTF loader labels materials with their names in the file.
    • An array, by index into Scene3DSource#materials; an empty entry keeps the source's.
    • A function, called once for each source material, returning the material to draw instead.
    new Model3D({ source, materials: { Paint: redPaint } });
    new Model3D({ source, materials: (material) => material.clone({ extraBits: [dissolveBit] }) });