Class: FilterSystem

FilterSystem

System that manages the filter pipeline

Implements

Members

activeBackTexture Texture | undefined readonly

The back texture of the currently active filter. Requires the filter to have blendRequired set to true.

Methods

calculateSpriteMatrix (outputMatrix, sprite) Matrix

Multiply input normalized coordinates to this matrix to get sprite texture normalized coordinates.

Use outputMatrix * vTextureCoord in the shader.

Name Type Description
outputMatrix Matrix

The matrix to output to.

sprite Sprite

The sprite to map to.

Returns:
Type Description
Matrix The mapped matrix.