Atlaslog
Atlaslog / three.js / API reference / PointLight
three.js · API reference

PointLight

Quick answer

PointLight emits light in all directions from a single position, with intensity measured in candela and decay controlling falloff. Configure distance to cap its influence and decay 2 for physically correct inverse-square attenuation, and enable castShadow only when the six-face shadow cost is acceptable.

Last verified 2026-11-03 · three.js 0.160.0 · Cite this page
new THREE.PointLight ( color , intensity , distance , decay )
Key points
Example
const lamp = new THREE.PointLight(0xffd08a, 40, 60, 2);
lamp.position.set(12, 8, -4);

lamp.castShadow = true;
lamp.shadow.mapSize.set(1024, 1024);
lamp.shadow.bias = -0.002;
lamp.shadow.camera.near = 0.5;
lamp.shadow.camera.far = 60;

scene.add(lamp);
const bulb = new THREE.Mesh(
  new THREE.SphereGeometry(0.4, 16, 12),
  new THREE.MeshBasicMaterial({ color: 0xffd08a })
);
bulb.position.copy(lamp.position);
scene.add(bulb);
Notes
Runnable examplesChinese originalAll API references
English edition written for Atlaslog. Code is taken from the original Chinese page and runs unchanged.
Cite this page

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