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

AmbientLight

Quick answer

Create an ambient light source which illuminates all the objects equally. Ambient light comes from all directions, adding ambient light ensures that obj.

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

Create an ambient light source which illuminates all the objects equally. Ambient light comes from all directions, adding ambient light ensures that object colors are rendered but does not show structure in 3D objects like directional and point lights do. Only one ambient light is supported.

Two spheres with ambient light

Usage​

Create an ambient light source with color and intensity.

const ambientLight= new AmbientLight({
color: [128, 128, 0],
intensity: 2.0
});

Methods​

constructor​

The constructor for the AmbientLight class. Use this to create a new AmbientLight.

const ambientLight = new AmbientLight({color, intensity});
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/ambient-light · Chinese note: /deckgl/api/ambient-light.html
Cite this page

Atlaslog (2026). AmbientLight. https://www.jingweizhi.com/en/deckgl/api/ambient-light.html (accessed 2026-11-03).