GPUImage icon indicating copy to clipboard operation
GPUImage copied to clipboard

Does GPUImage expect Unpremultiplied Alpha?

Open scisci opened this issue 7 years ago • 2 comments

I was trying to load png data into a texture with premultiplied alpha. I noticed transparent white renders more grey, meaning its not handling the premultiplied pixels correctly.

Does GPUImage expect that all image data is unpremultiplied?

I've read that with premultiplied inputs you need to have a special blend function and I haven't found that in the GPUImage source.

scisci avatar Nov 26 '17 17:11 scisci

I have the same trouble, only completely transparent pixels are drawing actually transparent; Semi-transparent pixels draws with additional transparent grey background;

artemtkachenko avatar Dec 21 '17 14:12 artemtkachenko

Yes. See below: https://github.com/BradLarson/GPUImage/issues/1210#issuecomment-25182881 https://github.com/BradLarson/GPUImage/issues/926 https://github.com/BradLarson/GPUImage/issues/768

hezhk3 avatar Jan 10 '19 01:01 hezhk3