Textures and Color4f..?
Im looking at Nehe tutorial 19, and the author binds a texture to a quad, and then changes the textures color with a call to Color4f. I tried this in one of my applications and it doesnt effect the color of the texure...any ideas?
Use glTexEnv to set the environment mode to "modulate". That multiplies the texture color by the vertex color, instead of replacing the color entirely with the texture color.
Have you perchance got lighting enabled in your own app? When lighting is enabled surface colours come from the object's material settings, vertex colours are ignored. You can make the material colours track the vertex colours with GL_COLOR_MATERIAL.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement