Class: FilterSystem

FilterSystem

System that manages the filter pipeline

Implements

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.