LWJGL Forum

Programming => OpenGL => Topic started by: technik3k on August 30, 2015, 01:34:37

Title: How to use Trancparency with openGL
Post by: technik3k on August 30, 2015, 01:34:37
I have an image I made with gimp that has a trancparent background. How do I render the tranceparent part with openGL.
Title: Re: How to use Trancparency with openGL
Post by: technik3k on August 30, 2015, 01:59:50
I figured it out. I used


glEnable(GL_BLEND);
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);