Sign in to follow this  
dpadam450

Textures and Color4f..?

Recommended Posts

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?

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this