Advertisement

Please help with my lighting problem

Started by August 13, 2000 04:59 PM
1 comment, last by Mike00 24 years, 6 months ago
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.
Advertisement
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.

This topic is closed to new replies.

Advertisement