On the left is a PNG as it appears in GIMP, on the right is that image loaded into my 2D OpenGL application. As you can see, transparency is working, but the blending seems a bit off; the edges of the image are quite unpleasant.
I'm using:
glEnable (GL_BLEND); glBlendFunc (GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
with AlphaTest enabled and DepthTest disabled.
I don't think this is a "premultiplied alpha", so... could it be that I need DepthTesting enabled and to (very) slightly increment the Z value of each of the 2D draws?
My alpha-blended textures look odd...
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement