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
| Parameter | Type |
|---|---|
spec | Readonly<MeshMaterialSpec> |
lighting | Readonly<MeshLighting> |
clip | ClipUniforms |
Returns
Material