Flip

Flips the input texture horizontally and/or vertically based on specified parameters.

Parameters

tex0 Texture: The input texture to be filtered. Default: The entire canvas
flipHorizontal Boolean: If true, flips the texture horizontally. Default: false
flipVertical Boolean: If true, flips the texture vertically. Default: false

Example Parameters

flip.setUniform("flipHorizontal", true);
flip.setUniform("flipVertical", false);