DirectionalLight
new DirectionalLight(color?, intensity?)
THREE: THREE.DirectionalLight
Directional light. Direction is derived from position or from a target node when set. Shading is per-face (Flat) or per-vertex (Gouraud) depending on the material. No shadows.
Differs from THREE.js
No shadow support. Target is optional - falls back to deriving direction from position when unset.
Properties
| Name | Type | Description |
|---|---|---|
color | Color | Light color. Default 0xffffff. |
intensity | number | Brightness multiplier. Default 1. |
position | Vector3 | World position from which direction is computed. Default (0, 1, 0). |
target | Node|undefined | When set, direction is computed as normalize(target.worldPosition - light.worldPosition). Default undefined. |