Preserve transparency after alphaglue mask
I need to make feathered masks for zoomed-in areas of a png image with transparency (example attached). In the following patch the mask works with alphaglue but the zoomed image loses transparency. I’ve tried jit.gl.pix workarounds to get the original alpha back but no joy. Any tips appreciated!
Max Patch
Copy patch and select New From Clipboard in Max.
a simple jit.gl.pix will do the trick of multiplying the two alpha channels together.
you have to use [swiz r] on the gradient mask instead of [swiz a], due to the way a 1-plane matrix gets converted to a 4-plane texture.
Max Patch
Copy patch and select New From Clipboard in Max.
thanks Rob!