August 2018
Intermediate to advanced
528 pages
10h 58m
English
There are a number of different lights available in Three.js that all have specific behavior and usages. In this chapter, we'll discuss the following set of lights:
|
Name |
Description |
|
THREE.AmbientLight |
This is a basic light, the color of which is added to the current color of the objects in the scene. |
|
THREE.PointLight |
This is a single point in space from which light spreads in all directions. This light can't be used to create shadows. |
|
THREE.SpotLight |
This light source has a cone-like effect like that of a desk lamp, a spot in the ceiling, or a torch. This light can cast shadows. |
|
THREE.DirectionalLight |
This is also called infinite light. The light rays from ... |
Read now
Unlock full access