• Advertisement

Archived

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

Colorkeying...?

This topic is 6015 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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
Advertisement
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

  • Advertisement