PDA

View Full Version : TGA blending... GAHHHHH!!!!!



Brorsson
04-08-2001, 10:32 PM
This question is probably one of the most stupid I'v asked so far but, does opengl blend the alpha channel in a TGA image by itself or do I have to blend it with glBlendFunc?
If so, with what values?
(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA) does not work!!!
IT BLENDS THE WHOLE IMAGE TO APROX 50%, NOT ONLY THE ALPHA!!!!
GAHHH!!!!!!

Sancho
04-08-2001, 11:00 PM
Hi,

The blending function operates only on the incoming fragment (after texture(s) blending) so you must care on texture environment mode.

David.

(I hope i not too blurred: It's not so easy to write in English... http://www.opengl.org/discussion_boards/ubb/smile.gif )