Skip to main content
GameDev.net gamedev.net
🔒 Locked

Direct X Colors

Started by Kitasia Feb 2, 2007 at 9:43 AM 0 replies 400+ views
Original Post
Kitasia
Kitasia
Hey I was wondering, is there any way to work with coloring for directX like you do with OpenGL? OpenGL had a function called glSecondaryColor which worked on the dark parts of the texture and a function called glColor which worked on the light parts. I'm trying to make the dark part a redish color and the highlight yellowish! Any tips?
Agony
Agony
I'm going to take a guess and suggest that perhaps glColor corresponds to ambient or diffuse lighting, and glSecondary color corresponds to specular lighting. This page, or other related pages, may be of some assistance.
"We should have a great fewer disputes in the world if words were taken for what they are, the signs of our ideas nly, and not for things themselves." - John Locke o

Topic Locked

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

Sign in to reply to this topic.