Class: BlurDirFilter

BlurDirFilter


new BlurDirFilter(dirX, dirY)

The BlurDirFilter applies a Gaussian blur toward a direction to an object.

Parameters:
Name Type Description
dirX number
dirY number
Source:

Extends

Members


dirX :number

Sets the X direction of the blur

Type:
  • number
Default Value:
  • 0
Source:

dirY :number

Sets the Y direction of the blur

Type:
  • number
Default Value:
  • 0
Source:

padding :number

The extra padding that the filter might need

Type:
  • number
Inherited From:
Source:

passes :number

Sets the number of passes for blur. More passes means higher quaility bluring.

Type:
  • number
Default Value:
  • 1
Source:

uniforms :object

The uniforms as an object

Type:
  • object
Inherited From:
Source:

Methods


applyFilter(renderer, input, output, clear)

Applies the filter

Parameters:
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 From:
Overrides:
Source:

getShader(renderer)

Grabs a shader from the current renderer

Parameters:
Name Type Description
renderer PIXI.WebGLRenderer

The renderer to retrieve the shader from

Inherited From:
Source:

syncUniform()

Syncs a uniform between the class object and the shaders.

Inherited From:
Source: