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

PointLight

Quick answer

Create a point light source which emits from a point in all directions. At most 5 directional lights can be supported.

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

Create a point light source which emits from a point in all directions. At most 5 directional lights can be supported.

Two spheres with point light

Usage​

Create a point light source with color, intensity and position.

const pointLight= new PointLight({
color: [128, 128, 0],
intensity: 2.0,
position: [0, 0, 200]
});

Methods​

constructor​

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

const pointLight = new PointLight({color, intensity, position});

Source​

/modules/core/src/effects/lighting/point-light.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/point-light · Chinese note: /deckgl/api/point-light.html
Cite this page

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