PIXI.filters.BlurFilterPass
class BlurFilterPass extends PIXI.Filter
The BlurFilterPass applies a horizontal or vertical Gaussian blur to an object.
Constructor
new PIXI.filters.BlurFilterPass(horizontal: boolean, strength: number, quality: number, resolution, kernelSize: number) → {}
| Name | Type | Default | Description |
|---|---|---|---|
| horizontal | boolean |
Do pass along the x-axis ( |
|
| strength | number | 8 |
The strength of the blur filter. |
| quality | number | 4 |
The quality of the blur filter. |
| resolution |
The resolution of the blur filter. |
||
| kernelSize | number | 5 |
The kernelSize of the blur filter.Options: 5, 7, 9, 11, 13, 15. |
Summary
Properties from BlurFilterPass
| number |
|
| number |
|
Methods from BlurFilterPass
| void |
|
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
quality: number = 4
Sets the quality of the blur by modifying the number of passes. More passes means higher quality bluring but the lower the performance.
Public Methods
apply(filterManager: PIXI.FilterSystem, input: PIXI.RenderTexture, output: PIXI.RenderTexture, clearMode: PIXI.CLEAR_MODES) → {void}
Applies the filter.
| Name | Type | Description |
|---|---|---|
| filterManager | PIXI.FilterSystem |
The manager. |
| input | PIXI.RenderTexture |
The input target. |
| output | PIXI.RenderTexture |
The output target. |
| clearMode | PIXI.CLEAR_MODES |
How to clear |
| Type | Description |
|---|---|
| void |