Skip to content

Function: createThreeMaterial() ​

ts
function createThreeMaterial(spec, lighting, clip): Material;

Experimental

Create the three.js material of spec (a three.js type), seeded from Plotly's lighting, with the clip box injected. The caller disposes it and material.userData.gradient (toon).

Parameters ​

ParameterType
specReadonly<MeshMaterialSpec>
lightingReadonly<MeshLighting>
clipClipUniforms

Returns ​

Material

Released under the MIT License.