Name | Type | Attributes | Default | Description |
---|---|---|---|---|
color |
number |
<optional> |
0xFFFFFF |
The color of the light. |
brightness |
number |
<optional> |
1 |
The brightness of the light, in range [0, 1]. |
material |
PIXI.lights.LightShader |
<optional> |
||
vertices |
Float32Array |
<optional> |
||
indices |
Uint16Array |
<optional> |
Extends
- PIXI.Mesh
Members
Brightness
The color of the lighting.
Falloff
The falloff attenuation coeficients.
- Default Value:
- [0.75, 3, 20]
Last layer
- Default Value:
- undefined
Light height
The height of the light from the viewport.
- Default Value:
- 0.075
Shader name
- Default Value:
- undefined
Use Viewport Quad
By default the light uses a viewport sized quad as the mesh.
Methods
Sync Shader
Name | Type | Description |
---|---|---|
renderer |
PIXI.Renderer |
Renderer |