I am trying to blend 2 textures (applied to the same plane), both of which contain transparent areas.
The way I do it now is with two passes:
glTexEnvi(GL_TEXTURE_ENV,GL_TEXTURE_ENV_MODE, GL_REPLACE );
glBindTexture(GL_TEXTURE_2D, openGLNam );
glTexEnvi(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_REPLACE);
I first apply the first texture and on top of it I blend the second. What seems to happen though is that the second texture covers and hides the transparent regions of the first one, something that shouldn’t happen with a (GL_DST_ALPHA,GL_ZERO) blending function.
Am I right, or if not what am I doing wrong??
Thanks a lot for any help!!