Import
ClusteredLighting is an addon, and must be imported explicitly, see Installation#Addons.
import { ClusteredLighting } from 'three/addons/lighting/ClusteredLighting.js';
Constructor
new ClusteredLighting( maxLights : number, tileSize : number, zSlices : number, maxLightsPerCluster : number )
Constructs a new clustered lighting system.
| maxLights |
Maximum number of point lights. Default is |
| tileSize |
Screen tile size in pixels (cluster XY size). Default is |
| zSlices |
Number of exponential depth slices. Default is |
| maxLightsPerCluster |
Per-cluster light-list capacity. Default is |
Classes
- ClusteredLighting
Methods
.createNode( lights : Array.<Light> ) : ClusteredLightsNode
Creates a new clustered lights node for the given array of lights.
This method is called internally by the renderer and must be overwritten by all custom lighting implementations.
| lights |
The lights. |
- Overrides: Lighting#createNode
- Returns: The clustered lights node.