Phaser API Documentation

  Version: 
batchLightVert(x, y, lightX, lightY, radius, attenuation, r, g, b, a)

Description:

Adds a single Point Light vertex to the current vertex buffer and increments the vertexCount property by 1.

This method is called directly by batchPointLight.

Parameters:

name type description
x number

The vertex x position.

y number

The vertex y position.

lightX number

The horizontal center of the light.

lightY number

The vertical center of the light.

radius number

The radius of the light.

attenuation number

The attenuation of the light.

r number

The red color channel of the light.

g number

The green color channel of the light.

b number

The blue color channel of the light.

a number

The alpha color channel of the light.