| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
texture |
PIXI.Texture |
a texture where your lightmap is rendered |
||
color |
Array<number> | number |
<optional> |
0x000000 |
An RGBA array of the ambient color |
alpha |
number |
<optional> |
1 |
Default alpha set independent of color (if it's a number, not array). |
Example
displayObject.filters = [new SimpleLightmapFilter(texture, 0x666666)];
Extends
- PIXI.Filter
Members
When setting color as hex, this can be used to set alpha independently.
An RGBA array of the ambient color or a hex color without alpha
a texture where your lightmap is rendered

