   Alpha Blending: To Pre or Not To Pre
Just a quick note to let folks know that NVIDIA's John McDonald just posted a nice article on alpha blending called "Alpha Blending: To Pre or Not To Pre".This blog post includes a nice WebGL demo demonstrating the concepts as well.
Another useful article on the topic of pre-multiplied alpha, from Shawn Hargreaves:http://blogs.msdn.com/b/shawnhar/archive/2009/11/06/premultiplied-alpha.aspx;I like to use pre-multiplied alpha in GC, but there is one thing I've had to be aware of, and that is alpha testing. With regular alpha, you can alpha-test and discard fragments with an alpha of 0 (fully transparent), saving a little bit of fill rate. However, there are usage cases with pre-mult alpha in which you want to draw those 0-alpha pixels (since it equates to an additive blend if RGB is non-0) but with alpha-testing they'll get discarded. Just a little something to be aware of if you find yourself having an issue.;  When would you do the pre multiplying?   ;When would you do the pre multiplying?If when authoring your texture, the transparent/background parts are black, then it's already done ;)   ;  That's a much easier explanation - I like simple!   