Capítulo 149 de 859

Chapter 149: SpotLightShadow

Core Idea

Represents the shadow configuration of directional lights.

Key Concepts

  • aspect : number: Texture aspect ratio.
  • focus : number: Used to focus the shadow camera. The camera's field of view is set as a percentage of the spotlight's field-of-view. Range is [0, 1].
  • isSpotLightShadow : boolean (readonly): This flag can be used for type testing.

Reference Tables

Constructor

Signature
new SpotLightShadow()

Properties

PropertyDescription
.aspect : numberTexture aspect ratio.
.focus : numberUsed to focus the shadow camera. The camera's field of view is set as a percentage of the spotlight's field-of-view. Range is [0, 1].
.isSpotLightShadow : boolean (readonly)This flag can be used for type testing.

Key Takeaways

  1. SpotLightShadow extends: LightShadow
  2. Most relevant properties: aspect, focus, isSpotLightShadow.

Connects To