PIXI.filters.AdvancedBloomFilter
class AdvancedBloomFilter extends PIXI.Filter
The AdvancedBloomFilter applies a Bloom Effect to an object. Unlike the normal BloomFilter
this had some advanced controls for adjusting the look of the bloom. Note: this filter
is slower than normal BloomFilter.
Constructor
new PIXI.filters.AdvancedBloomFilter(options: object | number) → {}
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
options | object | number |
<optional> |
The optional parameters of advanced bloom filter.
When options is a number , it will be |
|
options.threshold | number |
<optional> |
0.5 |
Defines how bright a color needs to be to affect bloom. |
options.bloomScale | number |
<optional> |
1.0 |
To adjust the strength of the bloom. Higher values is more intense brightness. |
options.brightness | number |
<optional> |
1.0 |
The brightness, lower value is more subtle brightness, higher value is blown-out. |
options.blur | number |
<optional> |
8 |
Sets the strength of the Blur properties simultaneously |
options.quality | number |
<optional> |
4 |
The quality of the Blur filter. |
options.kernels | Array<number> |
<optional> |
null |
The kernels of the Blur filter. |
options.pixelSize | number | number<Array> | PIXI.Point |
<optional> |
1 |
the pixelSize of the Blur filter. |
options.resolution | number |
<optional> |
PIXI.settings.FILTER_RESOLUTION |
The resolution of the Blur filter. |
Summary
Properties from AdvancedBloomFilter
AdvancedBloomFilterOptions |
Default construction options. |
number |
To adjust the strength of the bloom. Higher values is more intense brightness. |
number |
Sets the strength of the Blur properties simultaneously |
number |
The brightness, lower value is more subtle brightness, higher value is blown-out. |
number[] |
Sets the kernels of the Blur Filter |
number | number<Array> | PIXI.Point |
Sets the pixelSize of the Kawase Blur filter |
number |
Sets the quality of the Blur Filter |
number |
Defines how bright a color needs to be to affect bloom. |
Properties inherited from Filter
boolean |
|
PIXI.BLEND_MODES |
|
boolean |
If enabled is true the filter is applied, if false it will not. |
boolean |
|
PIXI.MSAA_QUALITY |
The samples of the filter. |
number |
|
number |
|
PIXI.State |
The WebGL state the filter requires to render. |
Properties inherited from Shader
PIXI.Program |
Program that the shader uses. |
Dict<any> |
|
Public Properties
static defaults: AdvancedBloomFilterOptions
Default construction options.
bloomScale: number = 1
To adjust the strength of the bloom. Higher values is more intense brightness.
blur: number = 2
Sets the strength of the Blur properties simultaneously
brightness: number = 1
The brightness, lower value is more subtle brightness, higher value is blown-out.
pixelSize: number | number<Array> | PIXI.Point = 1
Sets the pixelSize of the Kawase Blur filter
threshold: number = 0.5
Defines how bright a color needs to be to affect bloom.