1
0
Fork 0

Disable two sided light model because Andy's patch to plib makes it unneeded. This should also increase framerate a bit

This commit is contained in:
ehofman 2003-11-09 15:07:23 +00:00
parent e77a6e4d3d
commit 177e081a2a

View file

@ -1247,10 +1247,11 @@ static void fgMainLoop( void ) {
// END Tile Manager udpates
if (fgGetBool("/sim/rendering/specular-highlight")) {
glLightModeli(GL_LIGHT_MODEL_COLOR_CONTROL, GL_SEPARATE_SPECULAR_COLOR); glLightModeli(GL_LIGHT_MODEL_TWO_SIDE, GL_TRUE);
glLightModeli(GL_LIGHT_MODEL_COLOR_CONTROL, GL_SEPARATE_SPECULAR_COLOR);
// glLightModeli(GL_LIGHT_MODEL_TWO_SIDE, GL_TRUE);
} else {
glLightModeli(GL_LIGHT_MODEL_COLOR_CONTROL, GL_SINGLE_COLOR);
glLightModeli(GL_LIGHT_MODEL_TWO_SIDE, GL_FALSE);
// glLightModeli(GL_LIGHT_MODEL_TWO_SIDE, GL_FALSE);
}
// redraw display