Skip to content

compas_threejs.materials.material.Material ¤

Material(
    color: Color = white(),
    metalness: float = 0,
    roughness: float = 1,
    emissive: Color = black(),
    emissive_intensity: float = 0,
    flat_shading: bool = False,
    wireframe: bool = False,
    transparent: bool = False,
    opacity: float = 1,
    **kwargs,
)

Represents the standard material properties for a 3D object.

Parameters:

  • color (Color, default: white() ) –

    The base color of the material. Default is white.

  • metalness (float, default: 0 ) –

    The metalness of the material, between 0 and 1. Default is 0 (non-metallic).

  • roughness (float, default: 1 ) –

    The roughness of the material, between 0 and 1. Default is 1 (fully rough).

  • emissive (Color, default: black() ) –

    The emissive color of the material. Default is black (no emission).

  • emissive_intensity (float, default: 0 ) –

    The intensity of the emissive color. Default is 0 (no emission).

  • flat_shading (bool, default: False ) –

    Whether to use flat shading. Default is False (smooth shading).

  • wireframe (bool, default: False ) –

    Whether to render the material as a wireframe. Default is False (solid rendering).