Adds a Point Light Game Object to the batch, flushing if required.
name | type | description |
---|---|---|
light | Phaser.GameObjects.PointLight |
The Point Light Game Object. |
camera | Phaser.Cameras.Scene2D.Camera |
The camera rendering the Point Light. |
x0 | number |
The top-left x position. |
y0 | number |
The top-left y position. |
x1 | number |
The bottom-left x position. |
y1 | number |
The bottom-left y position. |
x2 | number |
The bottom-right x position. |
y2 | number |
The bottom-right y position. |
x3 | number |
The top-right x position. |
y3 | number |
The top-right y position. |
lightX | number |
The horizontal center of the light. |
lightY | number |
The vertical center of the light. |