August 2018
Intermediate to advanced
528 pages
10h 58m
English
The last real light source we'll look at is THREE.AreaLight. With THREE.AreaLight, we can define a rectangular area that emits light. In older versions of Three.js, the area light wasn't included, and you had to take a number of additional steps to get it working. In the latest versions of Three.js, however, using THREE.AreaLight is very straightforward. Before we look at the details, let's first look at the result we're aiming for (06-area-light.html opens this example); the following screenshot shows the result we want to see:

What you see in this screenshot is that we've defined three THREE.AreaLight objects, ...
Read now
Unlock full access