Shader for Photoshop Dissolve blend mode

Jean-Francois Charles's icon

Hi,
As far as I understand the "Dissolve" Photoshop blend mode works something like this:

Max Patch
Copy patch and select New From Clipboard in Max.

Is a shader for jit.gl.slab available somewhere? Or would you point me to a GSLS shader I could adapt?
Thanks!

Roman Thilenius's icon


i dont know how relevant this is for shaders... but for image blend modes in apps like PS you would first create a 2-bit random map (with even distribution) across the canvas (0 0 0 and 255 255 255), then modify that by multiplying it pixel by pixel with the opacity delta between the layers (alpha foreground - alpha background)

Jean-Francois Charles's icon