i have a very weird problem, with the following code which render a simple landscape
[CODE] glEnable(GL_LIGHTING);
glEnable(GL_LIGHT0);
land.Render(frustumhelper, draw_debug);
{
GLfloat light_ambient[] = { 0.0f, 0.0f, 0.0f, 1.0f };
GLfloat light_diffuse[] = { 1.0f, 1.0f, 1.0f, 1.0f };
GLfloat light_specular[] = { 1.0f, 1.0f, 1.0f, 1.0f };
//GLfloat light_position[] = { 1.0f, 1.0f, 1.0f, 0.0f };
GLfloat light_position[] = { 0.0f, 0.0f, 1.0f, 0.0f };
glLightfv(GL_LIGHT0, GL_AMBIENT, light_ambient);
glLightfv(GL_LIGHT0, GL_DIFFUSE, light_diffuse);
glLightfv(GL_LIGHT0, GL_SPECULAR, light_specular);
glLightfv(GL_LIGHT0, GL_POSITION, light_position);
}
glDisable(GL_LIGHTING);
[CODE]
in release mode, lighting is correct however in debug mode the landscape doesn't lit at all : full dark !!
any hint about this behaviour ??
thanks for the help.