One color as transparency.
Hi, I use OpenGL and GLUT and I was wondering whether there's a way to tell OpenGL that a certain color will represent alpha without using RGBA as the internal format.
Thanks in advance.
yes in theory, just create a shader that discards fragments/pixels of a certain color.
But shaders are expensive, so it's better to use the alpha channel.
But shaders are expensive, so it's better to use the alpha channel.
www.flashbang.se | www.thegeekstate.com | nehe.gamedev.net | glAux fix for lesson 6 | [twitter]thegeekstate[/twitter]
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement