Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Morgan

lighting and colored polygons

This topic is 6927 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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

Share this post


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

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!