This code its how I put lights in my terrain engine, the problem is that the terrain looks like a chess-board, b&w quads.
My calculation of normals its ok.
Code :lights() its in REDRAW function too void lightsgl(void) { lights(); glEnable(GL_LIGHT0); glEnable(GL_LIGHTING); } void lights(void) { float ambience[4] = {0.3f, 0.3f, 0.3f, 1.0}; float diffuse[4] = {0.5f, 0.5f, 0.5f, 1.0}; float g_LightPosition[4] = {0, 1, 0, 1}; glLightfv( GL_LIGHT0, GL_AMBIENT, ambience ); glLightfv( GL_LIGHT0, GL_DIFFUSE, diffuse ); glLightfv( GL_LIGHT0, GL_POSITION, g_LightPosition ); }



