Filter

Class: Phaser.Filter

Constructor

new Filter(game, uniforms, fragmentSrc)

This is a base Filter class to use for any Phaser filter development.

The vast majority of filters (including all of those that ship with Phaser) use fragment shaders, and
therefore only work in WebGL and are not supported by Canvas at all.

Parameters
Name Type Description
game Phaser.Game

A reference to the currently running game.

uniforms object <