SpotLight
new SpotLight(color?, intensity?, distance?, angle?, penumbra?, decay?)
THREE: THREE.SpotLight
Cone-shaped spot light with distance and angular attenuation, computed per vertex on the CPU.
Differs from THREE.js
No shadow support. Target is optional - falls back to the direction property when unset.
Properties
| Name | Type | Description |
|---|---|---|
color | Color | Light color. Default 0xffffff. |
intensity | number | Brightness multiplier. Default 1. |
distance | number | Attenuation radius. 0 means no limit. Default 0. |
angle | number | Half-angle of the cone in radians. Default Math.PI / 3. |
penumbra | number | Soft-edge fraction [0–1]. Default 0. |
decay | number | Attenuation exponent. Default 2. |
target | Node|undefined | When set, cone direction is computed as normalize(target.worldPosition - light.worldPosition). Default undefined. |