Skip to content

Interface: ExtrusionMaterial ​

The material of extruded shapes (with depth): Plotly figures keep the default, plotly.

Properties ​

PropertyTypeDefault valueDescription
castshadow?booleanfalseCast shadows from the lights of scene.lighting with castshadow (onto three.js material types and the ground plane).
clearcoat?numberundefinedA clear lacquer layer (physical). Default 0. Range: 0 – 1
clearcoatroughness?numberundefinedRoughness of the clear coat (physical). Default 0. Range: 0 – 1
emissive?stringundefinedColor the surface emits regardless of the lights. Default black.
emissiveintensity?numberundefinedStrength of emissive. Default 1. Minimum: 0
envmapintensity?numberundefinedStrength of the environment's light (standard, physical). Default 1. Minimum: 0
ior?numberundefinedIndex of refraction (physical). Default 1.5. Range: 1 – 2.333
iridescence?numberundefinedThin-film iridescence (physical). Default 0. Range: 0 – 1
matcap?stringundefinedURL of a matcap image (matcap): the surface takes its colors from it by normal direction.
metalness?numberundefinedHow metallic the surface is (standard, physical). Default 0. Range: 0 – 1
receiveshadow?booleanfalseReceive shadows (three.js material types only).
reflectivity?numberundefinedHow much the environment is reflected (basic, lambert, phong, physical). Range: 0 – 1
roughness?numberundefinedSurface roughness (standard, physical). Default: lighting.roughness. Range: 0 – 1
sheen?numberundefinedVelvet-like sheen (physical). Default 0. Range: 0 – 1
sheencolor?stringundefinedColor of the sheen (physical).
sheenroughness?numberundefinedRoughness of the sheen (physical). Default 1. Range: 0 – 1
shininess?numberundefinedSharpness of the highlights (phong). Default: from lighting.roughness. Minimum: 0
specular?stringundefinedColor of the highlights (phong). Default: lighting.specular gray.
steps?number3Number of shading bands (toon). Range: 2 – 16
thickness?numberundefinedThickness of transmissive volumes, scene units (physical). Minimum: 0
transmission?numberundefinedTransmission, for glass-like surfaces (physical). Default 0. Range: 0 – 1
type?| "plotly" | "flat" | "basic" | "lambert" | "phong" | "standard" | "physical" | "toon" | "matcap""plotly"How surfaces are shaded. plotly: Plotly's lighting model. flat: unlit, colors as given. basic, lambert, phong, standard, physical, toon, matcap: the three.js material of that name, lit by the lights of the scene (scene.lighting) or of the 2.5D view.

Released under the MIT License.