📖 INDEX
LOADING ENGINE...
DirectionalLight
THREE.JS REFERENCE // directionallight
A light that gets emitted in a specific direction.
Syntax
const light = new THREE.DirectionalLight(0xffffff, 0.5);Examples
Example 01Basic Usage
const light = new THREE.DirectionalLight(0xffffff, 0.5);Best Practices
- Consult the official Three.js documentation for deeper understanding.
- Be mindful of performance when creating many objects or geometries.