I need to implement a function that produces the same effect as D3DRENDERSTATE_AMBIENT in Direct3D.
Do I need to use one of my lights? If so, am I supposed to use GL_LIGHT0 - I remember seeing something about it that seemed “special” - or is there another way?
if u want global ambient light (applied to everything in the scene) use this
float amb[] = {0.5,0.5,0.5,1.0};
glLightModelfv(GL_LIGHT_MODEL_AMBIENT,amb);