Atlaslog
Atlaslog / deck.gl / API / LightingEffect
deck.gl · API reference

LightingEffect

Quick answer

The LightingEffect applies ambient, point and directional lighting to layers which support material property.

Last verified 2026-11-03 · deck.gl 9.0 · Cite this page
Runnable examplesChinese noteAll API topics

The LightingEffect applies ambient, point and directional lighting to layers which support material property.

Constructor​

new LightingEffect({light0, light1, light2, ...});

Parameters:

Members​

Light Sources​

ambientLight (AmbientLight, optional)​

An AmbientLight source which illuminates all the objects equally.

directionalLights (DirectionalLight[], optional)​

Array of DirectionalLight source which emits from a specific directions.

Light SourceColorIntensityDirection_shadow
1[255, 255, 255]1.0[-1, -3, -1]false
2[255, 255, 255]0.9[1, 8, -2.5]false

pointLights (PointLight[], optional)​

Array of PointLight source which emits from a point in all directions.

Remarks​

Source​

/modules/core/src/effects/lighting/lighting-effect.ts

TutorialsAPI index
English reference text adapted from the official deck.gl documentation, © vis.gl contributors, licensed under MIT.
Original page: https://deck.gl/docs/api-reference/core/lighting-effect · Chinese note: /deckgl/api/lighting-effect.html
Cite this page

Atlaslog (2026). LightingEffect. https://www.jingweizhi.com/en/deckgl/api/lighting-effect.html (accessed 2026-11-03).