Interface ClusteredLightContainer
interface ClusteredLightContainer {
horizontalTiles: number;
kind: "clusteredLightContainer";
pointLights: ClusteredPointLight[];
spotLights: ClusteredSpotLight[];
verticalTiles: number;
zSlices: number;
}
horizontalTiles: number;
kind: "clusteredLightContainer";
pointLights: ClusteredPointLight[];
spotLights: ClusteredSpotLight[];
verticalTiles: number;
zSlices: number;
}
Properties
horizontal Tiles
horizontalTiles: number
Number of cluster tiles across the screen horizontally.
Readonlykind
kind: "clusteredLightContainer"
Discriminant tag identifying this object as a clustered light container.
point Lights
The point lights managed by this container.
spot Lights
The spot lights managed by this container. Add them with createClusteredSpotLight.
vertical Tiles
verticalTiles: number
Number of cluster tiles across the screen vertically.
z Slices
zSlices: number
Number of depth slices used to bin lights along view-space Z.
Holds a large set of point and spot lights that are binned into screen-space clusters on the GPU, so PBR materials can shade hundreds of lights efficiently. Add it to a scene with addClusteredLightContainer.