GPUImage icon indicating copy to clipboard operation
GPUImage copied to clipboard

Updated screen blend to account for alpha in both textures

Open giilby opened this issue 12 years ago • 5 comments

This is a fix for issue #1268.

giilby avatar Nov 10 '13 01:11 giilby

Does this anticipate premultiplied alpha in the input images, or is it for the case where there isn't premultiplied alpha in the inputs? I'm trying to eliminate premultiplied alpha from my inputs, so I wanted to check.

BradLarson avatar Nov 11 '13 15:11 BradLarson

The updated shader does not expect premultiplied alpha in the inputs, as it performs the premultiplication itself, then "undoes" it before setting gl_FragColor

giilby avatar Nov 11 '13 18:11 giilby

Brad, is there anything preventing these changes from being pulled into master? Let me know if there's something I need to fix!

giilby avatar Dec 22 '13 06:12 giilby

Hello, how do we pass the alpha parameter?

kakashilw avatar Apr 23 '24 15:04 kakashilw

来信已收到,我会尽快查看!

ygsky avatar Apr 23 '24 16:04 ygsky