Skip to main content
gamedev.net
🔒 Locked

materials

Started by Endar Jan 29, 2006 at 6:13 PM 0 replies 200+ views
Original Post
Endar
Endar
To use lighting materials such as ambient, diffuse, etc, with the function "glMaterialfv(GL_FRONT, GL_AMBIENT, temp);", do I have to call "glEnable(GL_COLOR_MATERIAL);" for it to work?
[size="2"][size=2]Mort, Duke of Sto Helit: NON TIMETIS MESSOR -- Don't Fear The Reaper
soconne
soconne
No, you should NOT call glEnable(GL_COLOR_MATERIAL). That's for a different way of applying material colors. All you need to do is call glMaterialf(...)
Author Freeworld3Dhttp://www.freeworld3d.org

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.