Skip to content

Function: extrusionMaterialSpec() ​

ts
function extrusionMaterialSpec(material, onTextureLoad?): MeshMaterialSpec | null;

Experimental

The mesh material spec of a defaulted material attribute (core litMaterialAttributes): null for Plotly's model; CSS colors become sRGB tuples, a matcap URL a texture (onTextureLoad is called once it has loaded).

Parameters ​

ParameterType
materialunknown
onTextureLoad?() => void

Returns ​

MeshMaterialSpec | null

Released under the MIT License.