All Photoshop blending modes + RGB/HSL conversions

Hi there,

Something that might interest you… all the Photoshop blending modes as GLSL macros + RGB to HSL (hue, saturation, luminance), contrast, desaturation.

Everything is here: http://blog.mouaif.org/2009/01/05/photoshop-math-with-glsl-shaders/

Of course it’s open to discussion and I know for sure … optimization!

Hope it could help.


Romz

That could prove useful. Thanks!

Big thanks, very much appreciated!

I’m sorry but in a last minute change I made a mistake in the code, and I also had some issues on specific hardware due to conditional returns, but now it’s fixed and if you already have the .glsl file you should re-download it (same link).

And good news, now it’s also in [b]HLSL[/b].

Ok ok ok HLSL … sorry :slight_smile:

Hi,

Just added a gamma correction filter. Just like the Exposure/gamma or Levels/midtone in photoshop.

Details and code here:
http://blog.mouaif.org/2009/01/22/photoshop-gamma-correction-shader/

thanks! grabbed both HLSL and GLSL version. that will be useful.

Hi,

I added the complete reproduction of the Photoshop Levels control.

Image: http://mouaif.files.wordpress.com/2009/01/levels-all.jpg?w=405&h=301

Details and code here: http://blog.mouaif.org/2009/01/28/levels-control-shader/

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