Interface: DirectionalLightSpec
Experimental
One directional light of scene.lighting.
Properties
| Property | Type | Description |
|---|---|---|
castShadow? | boolean | Experimental Cast shadows (three.js material types receive them, and the ground plane). Default false. |
color? | RGBA | Experimental sRGB. Default white. |
intensity? | number | Experimental Default 1 (Plotly units: 1 = full color). |
position? | Vec3 | Experimental 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? | LightSpace | Experimental |