GLSL shader to boost the color

Is their any GLSL shader that can help me to “boost” the color of a texture ? How to write such shader ? I would like to do something like the picture below :

Convert from RGB to HSL, modify the saturation using a curve where 0% and 100% saturation are unchanged but intermediate saturation is increased. E.g.
s’ = s + a*(1-s)*s
where
a = 4 * h - 2
where h is the value of s’ when s=1/2.
Then convert HSL back to RGB.

Alternatively, get the source code for GIMP and look at how the “Adjust Hue/Lightness/Saturation” tool works.

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.