cwolves
Apr 21, 2009, 02:55 AM
I can't for the life of me get two png textures to render on top of one-another properly when the top one has partial transparency.
http://farm4.static.flickr.com/3583/3462146738_d201e2b35d_o.png
The above image shows three renders. One using polygons (a blue square with a white diamond and 50% opacity on top of it, blending mode: glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA))
And two with textures. One using the "normal" rendering mode, the other using the "premultiplied" rendering mode, at least according to forums...
All I want is to reproduce the first result using textures....
Oh, and I've LITERALLY tried every blending mode possible with glBlendFunc.
http://farm4.static.flickr.com/3583/3462146738_d201e2b35d_o.png
The above image shows three renders. One using polygons (a blue square with a white diamond and 50% opacity on top of it, blending mode: glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA))
And two with textures. One using the "normal" rendering mode, the other using the "premultiplied" rendering mode, at least according to forums...
All I want is to reproduce the first result using textures....
Oh, and I've LITERALLY tried every blending mode possible with glBlendFunc.
