Set alpha mask based on ReplaceAlphaWithStencil()