Lights
Video Lecture
Description
There are various kinds of lights in Threejs.
They all extend from the THREE.Light base class, which in turn also extends from the Object3D base class.
The base class properties
- color
- intensity
- isLight (Read Only)
Lighting gives you many more options to change the appearance of meshes within the scene. Meshes will need materials added to them in order for the lighting adjustments to take effect.
If a scene has no lighting, most materials won't be visible. The MeshBasicMaterial, MeshNormalMaterial and the MeshMatcapMaterial are self illuminating so they don't need lighting to be visible within a scene, but most of the other materials do, such as the MeshLambertMaterial, MeshPhongMaterial, MeshStandardMaterial, MeshPhysicalMaterial and MeshToonMaterial.
In these next examples, I will demonstrate how the different lighting affects the different materials.