Sign in to follow this  

OpenGL My alpha-blended textures look odd...

Recommended Posts

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:


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?

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this