Types of Lights
Explore the various types of light sources in Three.js to understand their behaviors and uses. Learn how Ambient, Point, Spot, Directional, Hemisphere, and special lights enhance 3D scene realism and contribute to shadow effects and natural lighting.
We'll cover the following...
We'll cover the following...
What lighting types are provided in Three.js?
Several different lights are available in Three.js that all have specific behavior and usages. In this chapter, we’ll discuss the following set of lights:
-
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 be used to create shadows.
...