Skip to content

Latest commit

 

History

History
17 lines (11 loc) · 385 Bytes

File metadata and controls

17 lines (11 loc) · 385 Bytes

Contrast Shader

This shader adds or remove contrast from an image. See the results here. This shader could also be trivially modified to control the saturation of the image.

Code

contrast_shader.pde

link:contrast_shader.pde[role=include]

contrast.frag

link:contrast.frag[role=include]