Navigation
These archived docs are for Phaser 2.4.2 Phaser 3 docs can be found on newdocs.phaser.io.
Phaser CE docs can be found on the Phaser CE Documentation site.

Constructor

PIXI. AbstractFilter

new AbstractFilter(fragmentSrc, uniforms)

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.

Parameters
Name Type Description
fragmentSrc Array

The fragment source in an array of strings.

uniforms Object

An object containing the uniforms for this filter.

Source code: pixi/filters/AbstractFilter.js (Line 5)

Public Properties

dirty : boolean

Source code: pixi/filters/AbstractFilter.js (Line 31)

padding : number

Source code: pixi/filters/AbstractFilter.js (Line 37)

Public Methods

syncUniforms()

Syncs the uniforms between the class object and the shaders.

Source code: pixi/filters/AbstractFilter.js (Line 60)