Skip to main content
gamedev.net
🔒 Locked

GL_BUG();

Started by Prod 3 replies 1k views
Original Post
Prod
Prod
..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
Gorg
Gorg
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.
Spiral
Spiral
This question pops up quite a bit. Perhaps it should go in the FAQ.
--------------------Go Stick Your Head In A Pig
Prod
Prod
hey thanks!

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.