Hi,
I am trying to use lighting on a simple cube. The precise code to initialize my lighting is this:
void InitLighting ()
{
glEnable(GL_DEPTH_TEST);
glEnable(GL_LIGHTING);
glEnable(GL_LIGHT0);
glEnable(GL_COLOR_MATERIAL);
}
However, when I use glEnable(GL_DEPTH_TEST) nothing appears on the screen. Is this an issue of orientation of the faces of polygons? I am really stuck.