Documentation - v19.16.0-dev
    Preparing search index...

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

    interface MaterialProps {
        color: Color;
        edgeColor?: Color;
        emissive: Color;
        metalness: number;
        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).

    metalness: number

    0 (dielectric) to 1 (metal).

    opacity: number

    0 (invisible) to 1 (opaque).

    roughness: number

    0 (mirror) to 1 (fully diffuse).