new PIXI.filters.BlurDirFilter(dirX, dirY)
The BlurDirFilter applies a Gaussian blur toward a direction to an object.
Name | Type | Description |
---|---|---|
dirX |
number | |
dirY |
number |
Extends
Members
-
blurnumber
-
Sets the strength of both the blur.
- Default Value:
- 2
-
dirXnumber
-
Sets the X direction of the blur
- Default Value:
- 0
-
dirYnumber
-
Sets the Y direction of the blur
- Default Value:
- 0
-
dirYnumber
-
Sets the Y direction of the blur.
- Default Value:
- 0
-
paddingnumber
-
The extra padding that the filter might need
-
passesnumber
-
Sets the number of passes for blur. More passes means higher quaility bluring.
- Default Value:
- 1
-
uniformsobject
-
The uniforms as an object
Methods
-
inherited applyFilter(renderer, input, output, clear)
-
Applies the filter
Name Type Description renderer
PIXI.WebGLRenderer The renderer to retrieve the filter from
input
PIXI.RenderTarget output
PIXI.RenderTarget clear
boolean Whether or not we want to clear the outputTarget
-
inherited getShader(renderer)
-
Grabs a shader from the current renderer
Name Type Description renderer
PIXI.WebGLRenderer The renderer to retrieve the shader from
-
inherited syncUniform()
-
Syncs a uniform between the class object and the shaders.