Engine API Reference - v2.25.0-beta.9
    Preparing search index...

    Class WorldClustersDebug

    Visualizes the clustered lighting of a layer, for debugging. It draws the grid of light clusters as lines, and each cell that contains lights as a cube, colored by the number of lights in it (white for few lights, red for the maximum number of lights per cell). The visualization is rendered on the immediate layer (LAYERID_IMMEDIATE). It reflects the clusters used in the previous frame.

    Clustered lighting must be enabled, see Scene#clusteredLightingEnabled.

    const clustersDebug = new pc.WorldClustersDebug(app);
    clustersDebug.layer = app.scene.layers.getLayerByName('World');
    Index