🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

Please help with my lighting problem

Started by
1 comment, last by Mike00 23 years, 10 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!
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.
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