Cluster Lighting API Change?

Recently I’ve Been Getting The errors From Before I Used Cluster Lighting.

Here’s My Code:

    pc.LayerComposition.clusteredLightingEnabled = true;
        this.app.scene.layers.clusteredLightingCells = new pc.Vec3(12, 16, 12);
        this.app.scene.layers.clusteredLightingMaxLights = 48;

Hi @WilliamBoersma31,

Yes, check this post for an easy way to get started with clustered lighting:

1 Like