glColor*f()
Hi!
In my OpenGL programs I have noticed a phenomenon which completely baffles me and is really annoying.
glColor4f() and glColor3f() don't work when there's lighting. If I draw what should be a red cube, it is red until the lights come on. Then it is shades of grey. To fix this, I have made textures, one pixel big with my desired color on them. Texturing the objects than gives the effect I want.
I am certain this is not the right way to fix this problem. How do I fix it then?
Thanks,
Geometrian
[Edited by - Geometrian on February 16, 2008 7:10:50 PM]
I played around with some functions, but I didn't get it to work, and I'm not sure what you mean.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement