Jump to content
  • Advertisement
Sign in to follow this  
angry

Blending question

This topic is 4321 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

I'm wondering if it's possible to blend all blacks in a texture and at the same time also blend the whole texture by the given alpha which is given by a glColor4f(). That is, something like this:
glBlendFunc(GL_SOME_MAGICAL_DEF, GL_SOME_OTHER_MAGICAL_DEF);
glEnable(GL_BLEND);

glColor4f(1.0f, 1.0f, 1.0f, BLEND_QUAD_VALUE);
glBegin(GL_QUADS);
glTexCoord(..); glVertex3f(...);
//... so on..
glEnd()

Share this post


Link to post
Share on other sites
Advertisement
not unless u use shaders (which is gonna be very slow)
best method is to convert all blacks to alpha == 0.0 as was posted here recently (or the graphics forum)

Share this post


Link to post
Share on other sites
Hmm.. what if I let my texture have an alpha layer and then set up some kind of texture enviorment, that won't work either?

edit. doh, im stoopid! I figured it out :)

[Edited by - angry on October 15, 2006 4:54:27 PM]

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!