Phaser API Documentation

  Version: 
<readonly> maxLights: number

Description:

The maximum number of lights that a single Camera and the lights shader can process. Change this via the maxLights property in your game config, as it cannot be changed at runtime.

Type:
number
Since: 3.15.0