Please help with my lighting problem
When I glEnable(GL_COLOR_MATERIAL); my texture disappears!
If I don''t include that line though, my lights turn off 5 seconds after my program starts. I copied Nehe''s lighting code exactly, I didn''t add a timer or anything....
Thanks!
Make sure you are not modulating a color with that textured poly.
You may have glTexEnvi set to GL_MODULATE, so that your color that is now visible because of a light you have that is affecting the base color of the poly.
You may have glTexEnvi set to GL_MODULATE, so that your color that is now visible because of a light you have that is affecting the base color of the poly.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement