Skip to content

Interface: DirectionalLightSpec ​

Experimental

One directional light of scene.lighting.

Properties ​

PropertyTypeDescription
castShadow?booleanExperimental Cast shadows (three.js material types receive them, and the ground plane). Default false.
color?RGBAExperimental sRGB. Default white.
intensity?numberExperimental Default 1 (Plotly units: 1 = full color).
position?Vec3Experimental Where the light shines from. 'scene' (default): a point in scene space, shining toward the scene's center; 'camera': a direction in view space (x right, y up, z toward the viewer), moving with the camera; 'clip': Plotly's lightposition (clip space, un-projected). Default [1, 1, 1] (scene), [1, 1, 1] (camera), [1e5, 1e5, 0] (clip).
space?LightSpaceExperimental

Released under the MIT License.