I’m rendering a scene containing several lines. With lighting disabled everything renders fine using calls to glColor for the line coloring.
The problem comes when I enable lighting and call glColorMaterial(GL_FRONT_AND_BACK, GL_AMBIENT_AND_DIFFUSE). As I rotate the model (or the light) the lines intensity changes. Expected behavior but I want the lines to render with consistent intensity all around. Anyone know of a descent solution to keep GL_LINES intensity constant with lighting enabled?