Skip to content

Interface: MeshLighting ​

Experimental

Plotly's lighting attributes (surface, mesh3d, isosurface, …).

Properties ​

PropertyTypeDescription
ambientnumberExperimental Ambient light, 0–1. Plotly default 0.8.
diffusenumberExperimental Diffuse (Lambert) light, 0–1. Plotly default 0.8.
facenormalsepsilonnumberExperimental Faces whose squared normal length is at most this get no normal (flat shading).
fresnelnumberExperimental Fresnel exponent (reflection at grazing angles), 0–5. Plotly default 0.2.
roughnessnumberExperimental Beckmann roughness of the specular highlight, 0–1. Plotly default 0.5.
specularnumberExperimental Specular light, 0–2. Plotly default 0.05.
vertexnormalsepsilonnumberExperimental Vertex normal contributions and sums at most this are dropped (smooth shading).

Released under the MIT License.