AbstractFilter Class
This is the base class for creating a PIXI filter. Currently only webGL supports filters. If you want to make a custom filter this should be your base class.
Constructor
AbstractFilter
(
-
fragmentSrc
-
uniforms
Parameters:
-
fragmentSrc
ArrayThe fragment source in an array of strings.
-
uniforms
ObjectAn object containing the uniforms for this filter.
Methods
syncUniforms
()
Syncs the uniforms between the class object and the shaders.
Properties
dirty
Boolean
fragmentSrc
Array
private
padding
Number
passes
Array an array of filter objects
private
An array of passes - some filters contain a few steps this array simply stores the steps in a liniear fashion. For example the blur filter has two passes blurX and blurY.