Working with special lights
In this section on special lights, we’ll discuss three additional lights provided by Three.js. First, we’ll discuss THREE.HemisphereLight
, which helps in creating more natural lighting for outdoor scenes. Then, we’ll look at THREE.RectAreaLight
, which emits lights from a large area instead of a single point. Next, we’ll look at how we can use a LightProbe
to apply light based on a cubemap, and finally, we’ll show you how you can add a lens flare effect to your scene.
The first special light we’re going to look at is THREE.HemisphereLight
.
THREE.HemisphereLight
With THREE.HemisphereLight
, we can create more natural-looking outdoor lighting. Without this light, we could simulate the outdoors by creating THREE.DirectionalLight
, which emulates the sun, and maybe add another THREE.AmbientLight
to provide some general color to the scene. However, doing so won’t look natural. When you’re outdoors...