Original Post
🔒 Locked
GL_BUG();
Advertisement
It is meant to do that, it''s no bug. Set it white (1.0f, 1.0f, 1.0f, and an optional alpha 1.0f) if you want no color effect.
[Resist Windows XP''s Invasive Production Activation Technology!]
[Resist Windows XP''s Invasive Production Activation Technology!]
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.
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.
Topic Locked
This topic has been locked by a moderator. New replies are not allowed.
Sign in to reply to this topic.
Advertisement