Name | Type | Default | Description |
---|---|---|---|
texture |
PIXI.Texture |
a texture where your lightmap is rendered |
|
color |
Array.<number> | number | 0x000000 |
optional
An RGBA array of the ambient color |
alpha |
number | 1 |
optional
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