Relative Content

Tag Archive for openglglslshadermpvsaturation-arithmetic

how to add a saturation condition to a glsl shader?

I have this vibrance shader, It has an srgb threshold which can be adjusted. But the shader affects all saturation levels/%. I would like to leave colors that have a saturation under 80% unaffected, and target the above 90% saturation pixels, with a smooth transition between them (80-90%). So the first condition is the srgb threshold and the 2nd condition would be the pixel saturation. From my understanding this shader already checks saturation levels but I don’t know how this works. Any help would be appreciated 🙂
side note: I don’t understand shaders, I just want to make this one adjustment.