Working with Basic Lights: PointLight
Explore how to create and configure a THREE.PointLight in Three.js to illuminate 3D scenes. Learn how to set properties like distance and intensity to simulate effects like campfires. Understand how to use helpers for visualizing light source and shadow cameras to enhance scene realism.
The THREE.PointLight
THREE.PointLight is a light source that shines light in all directions emanating from a single point. A good example of a point light is a signal flare fired into the night sky or a campfire. Just as with all the lights, we have a specific example we can use to play around with THREE.PointLight:
Example: PointLight
If we look at point-light.js in the playground below, we can find an example where a THREE.PointLight is being used in the same scene we’re also using for the other lights.
Let’s execute the following playground by clicking the “Run” button to ...