🎉 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!
lighting and colored polygons
I usually only use texture mapped polygons in my apps, but one I''m working on I need to not use texture mapping. The problem is that I can''t use lighting on the colored polygons because it turns to shades of grey (I''ve known about this for a long time, but ignored it because I didn''t really have a problem with it). How do I fix this?
Morgan
Hi Morgan,
I think the call you need to make is glEnable(GL_COLOR_MATERIAL)... or something very similar. This enables color tracking (ie, it shades in progression of colors, rather than just grey).
-------------
squirrels are a remarkable source of protein...
I think the call you need to make is glEnable(GL_COLOR_MATERIAL)... or something very similar. This enables color tracking (ie, it shades in progression of colors, rather than just grey).
-------------
squirrels are a remarkable source of protein...
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement