Preserve transparency after alphaglue mask

    Jun 03 2016 | 3:36 pm
    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 workarounds to get the original alpha back but no joy. Any tips appreciated!

    • Jun 03 2016 | 3:53 pm
      a simple 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.
    • Jun 03 2016 | 9:36 pm
      thanks Rob!