I'm using the following to enable alpha blending
glEnable(GL_BLEND);
glBlendFunc(GL_ONE, GL_ONE_MINUS_SRC_ALPHA);
The transparency is taken from a texture which seems to work, using the simplest of fragment shaders:
void main(void) {
gl_FragColor = texture2D(texture, texCoordOut);
}
While it blends nicely with the background color it doesn't work with other objects using the same alpha blending. I don't really know how to explain this so here's a picture:
What am I doing wrong?