Class: DropShadowFilter

PIXI.filters. DropShadowFilter

new PIXI.filters.DropShadowFilter()

The DropShadowFilter applies a Gaussian blur to an object.
The strength of the blur can be set for x- and y-axis separately.

Extends

Members

alphanumber

Sets the alpha of the shadow

anglenumber

Sets the angle of the shadow

blurnumber

Sets the strength of both the blurX and blurY properties simultaneously

Default Value:
  • 2

blurXnumber

Sets the strength of the blurX property

Default Value:
  • 2

blurYnumber

Sets the strength of the blurY property

Default Value:
  • 2

colornumber

Sets the color of the shadow

distancenumber

Sets the distance of the shadow

paddingnumber

The extra padding that the filter might need

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

Grabs a shader from the current renderer

Name Type Description
renderer PIXI.WebGLRenderer

The renderer to retrieve the shader from

Syncs a uniform between the class object and the shaders.