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:
parent
e77a6e4d3d
commit
177e081a2a
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue