Advertisement

One color as transparency.

Started by April 03, 2005 08:38 PM
1 comment, last by TWizard 19 years, 5 months ago
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.
Advertisement
Thanks.

[Edited by - TWizard on April 4, 2005 6:05:41 PM]

This topic is closed to new replies.

Advertisement