Contrast

Adjusts the contrast.

Parameters

tex0 Texture: The input texture to be filtered. Default: The entire canvas
contrast Float: The contrast adjustment factor. A value of 1.0 leaves the contrast unchanged, while higher values increase contrast, and lower values decrease contrast. Default: 0.0

Example Parameters

contrast.setUniform('contrast', 2.0);