Documentation - v20.0.0-dev
    Preparing search index...

    Material properties of one part, as in three.js MeshStandardMaterial.

    interface MaterialProps {
        color: Color;
        edgeColor?: Color;
        emissive: Color;
        line?: LineStyle;
        metalness: number;
        name?: string;
        opacity: number;
        roughness: number;
    }
    Index

    Properties

    color: Color

    In three.js's working colour space (linear sRGB).

    edgeColor?: Color

    Colour of the part's sharp edges, in three.js's working colour space (linear sRGB); default the scene's settings.meshes.defaultEdgeColor. Changed afterwards with MeshProxy.setEdgeColor.

    emissive: Color

    In three.js's working colour space (linear sRGB).

    line?: LineStyle

    For a geometry of lines: its segments drawn as ribbons of this width and dashes (see LineStyle); without, 1 pixel wide. Ignored for triangles. Changed afterwards with MeshProxy.setLineWidth / setLineDash.

    metalness: number

    0 (dielectric) to 1 (metal).

    name?: string

    The material's name in its file, shown by the debug views (MeshProxy.getMaterialName).

    opacity: number

    0 (invisible) to 1 (opaque).

    roughness: number

    0 (mirror) to 1 (fully diffuse).