Skip to content

Interface: LightingSpec ​

Experimental

scene.lighting (E8.7). Colors are sRGB 0–1 RGBA (parsed by the caller).

Properties ​

PropertyTypeDescription
ambient?| { color?: RGBA; intensity?: number; } | nullExperimental
directional?readonly DirectionalLightSpec[] | nullExperimental
environment?string | Texture<unknown, TextureEventMap> | nullExperimental Image-based lighting for the standard / physical (and phong / basic reflections) material types: a built-in room ('studio', 'city'), an equirectangular image URL, or a texture (e.g. an HDR loaded with three's HDRLoader). Plotly's model ignores it.
environmentIntensity?numberExperimental Scales the environment's light. Default 1.
hemisphere?| { groundColor?: RGBA; intensity?: number; skyColor?: RGBA; up?: Vec3; } | nullExperimental
shadows?| { extent?: number; ground?: number | boolean; mapSize?: number; opacity?: number; up?: Vec3; } | nullExperimental Shadow maps of castShadow lights.

Released under the MIT License.