View Full Version : Colour with lighting

11-18-2000, 03:56 PM
When I use glColor3f to change the colour, it works fine with lighting disabled but as soon as lighting is enabled I just get white polygons. Is this supposed to happen or am I doing something wrong? I want to have lit polygons but would like just to be able to specify the colours of the vertices and have them smooth shaded - how do I do this?

11-18-2000, 05:11 PM
use glMaterial instead
or enable glColorEnable(GL_COLOR_MATERIAL)

use the latter _ONLY_ if you need to change material proporties a lot+