You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 22, 2026. It is now read-only.
We're still not calculating alpha blending correctly. In the attached image:
left is WebGL, right is Canvas. Notice the dark line when blending from
transparent to white.
Due to stability issues, specifying premultiplied alpha at the webgl attribute
level isn't an option. I think the best route is to do this ourselves in code
(e.g., gl.blendFunc(ONE, INVERSE_ALPHA) and premultiply the color channels when
loading the image).
Original issue reported on code.google.com by pdr@google.com on 19 Jun 2011 at 8:37