Archived

This topic is now archived and is closed to further replies.

Metus

Colorkeying...?

Recommended Posts

Metus    168
Is there any (easy) way to implement colormasking via colorkeys? Exampel: glBindTexture(GL_TEXTURE_2D. Texture): glIgnoreColor3f(1.0f, 0.0f, 0.0f); //do NOT draw RED glBegin(GL_QUADS): ... glEnd();

Share this post


Link to post
Share on other sites
bobatefrei    122
To suppress a component, you have:

void glColorMask(
GLboolean red,
GLboolean green,
GLboolean blue,
GLboolean alpha
);

But for only one color, take a look at Nehe tutorial on masking.

Share this post


Link to post
Share on other sites