Jump to content
  • Advertisement

Archived

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

Prod

GL_BUG();

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

..or am i just stupid? I dont think i have any alpha testing or blending or anything on yet when i draw my texture quad, it treats the shades of white as what ever glColor3f() i used last. Isnt that spooky? it didnt do it before. its a cool spooky effect

Share this post


Link to post
Share on other sites
Advertisement
change the texture environment GL_REPLACE instead of GL_MODULATE

glTexEnvi(GL_TEXTURE_2D,GL_TEXTURE_ENV_MODE, GL_REPLACE);

Modulate is there by default and what is modulation :

cf = color passed from glColor*
tf = texture of the color
F = final color

F = cf*tf; So if your texture is white 1.0, it will be muliplied by the color, so the white texels will change to cf.

Share this post


Link to post
Share on other sites

  • 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!