Inheritance: EventDispatcher → Node → LightsNode →
A custom version of LightsNode that batches supported analytic lights into uniform arrays and loops.
Unsupported lights, node lights, shadow-casting lights, and projected spot lights keep the default per-light path.
DynamicLightsNode is an addon, and must be imported explicitly, see Installation#Addons.
import { DynamicLightsNode } from 'three/addons/tsl/lighting/DynamicLightsNode.js';
Constructs a new dynamic lights node.
options
Dynamic lighting configuration.
Default is {}.
maxDirectionalLights
Maximum number of batched directional lights.
Default is 8.
maxPointLights
Maximum number of batched point lights.
Default is 16.
maxSpotLights
Maximum number of batched spot lights.
Default is 16.
maxHemisphereLights
Maximum number of batched hemisphere lights.
Default is 4.