Import
DynamicLighting is an addon, and must be imported explicitly, see Installation#Addons.
import { DynamicLighting } from 'three/addons/lighting/DynamicLighting.js';
Constructor
new DynamicLighting( options : Object )
Constructs a new dynamic lighting system.
| options |
Dynamic lighting configuration. Default is
|
Classes
- DynamicLighting
Methods
.createNode( lights : Array.<Light> ) : DynamicLightsNode
Creates a new dynamic lights node for the given array of lights.
| lights |
The lights to bind to the node. |
- Overrides: Lighting#createNode
- Returns: The dynamic lights node.
.getNode( scene : Scene ) : LightsNode
Returns a lights node for the given scene.
| scene |
The scene. |
- Overrides: Lighting#getNode
- Returns: The lights node.