THREE.PointLight

THREE.PointLight in Three.js 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 in the night sky. Just as with all the lights, we have a specific example you can use to play around with THREE.PointLight. If you look at 03-point-light.html in the chapter-03 folder, you can find an example where a THREE.PointLight light is moving around a simple Three.js scene.

The following screenshot shows an example of this:

In this example, THREE.PointLight moves around the scene we already saw in Chapter 1, Create Your First 3D Scene with Three.js ...

Get Learn Three.js - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.