Capítulo 112 de 859

Chapter 112: HemisphereLight

Core Idea

A light source positioned directly above the scene, with color fading from the sky color to the ground color.

This light cannot be used to cast shadows.

Key Concepts

  • groundColor : Color: The light's ground color.
  • isHemisphereLight : boolean (readonly): This flag can be used for type testing.

Code Examples

const light = new THREE.HemisphereLight( 0xffffbb, 0x080820, 1 );
scene.add( light );
  • What it demonstrates: Typical usage of HemisphereLight.

Reference Tables

Constructor

Signature
`new HemisphereLight( skyColor : number

Properties

PropertyDescription
.groundColor : ColorThe light's ground color.
.isHemisphereLight : boolean (readonly)This flag can be used for type testing.

Key Takeaways

  1. HemisphereLight extends: EventDispatcher → Object3D → Light
  2. Most relevant properties: groundColor, isHemisphereLight.

Connects To