Capítulo 97 de 859

Chapter 97: AmbientLight

Core Idea

This light globally illuminates all objects in the scene equally.

It cannot be used to cast shadows as it does not have a direction.

Key Concepts

  • isAmbientLight : boolean (readonly): This flag can be used for type testing.

Code Examples

const light = new THREE.AmbientLight( 0x404040 ); // soft white light
scene.add( light );
  • What it demonstrates: Typical usage of AmbientLight.

Reference Tables

Constructor

Signature
`new AmbientLight( color : number

Properties

PropertyDescription
.isAmbientLight : boolean (readonly)This flag can be used for type testing.

Key Takeaways

  1. AmbientLight extends: EventDispatcher → Object3D → Light
  2. Most relevant properties: isAmbientLight.

Connects To