Enable local viewer for better looking specular highlights

ver1_5_1
Chris Laurel 2002-01-09 23:00:36 +00:00
parent 49289bdbb5
commit cd205c74e5
1 changed files with 1 additions and 0 deletions

View File

@ -369,6 +369,7 @@ bool Renderer::init(int winWidth, int winHeight)
glEnable(GL_COLOR_MATERIAL);
glEnable(GL_LIGHTING);
glLightModeli(GL_LIGHT_MODEL_LOCAL_VIEWER, GL_TRUE);
// LEQUAL rather than LESS required for multipass rendering
glDepthFunc(GL_LEQUAL);