Hello Guest

How to use Trancparency with openGL

  • 1 Replies
  • 3288 Views
How to use Trancparency with openGL
« 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.

Re: How to use Trancparency with openGL
« Reply #1 on: August 30, 2015, 01:59:50 »
I figured it out. I used
Code: [Select]

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