PDA

View Full Version : How to switch lightening off



pospisil_m
01-07-2003, 11:00 PM
Hi,

There are some lights in my scene. I have blue wired object there. I don't want color of this object to be affected by light (I mean - I want all lines have same color). How should I set material properties (lights) ?

Regards,
Martin

T
01-08-2003, 12:49 AM
After drawing what you want affected by lighting, disable it.

glDisable(GL_LIGHTING);
glColor3f(...);
etc

Remember to enable lighting again when you want objects to be affected by it.