From: curt Date: Wed, 28 Mar 2001 18:11:05 +0000 (+0000) Subject: Light model tweaks. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=e7d79e7ba25d99aab9642bf4beafbd38623046dc;p=flightgear.git Light model tweaks. --- diff --git a/src/Main/main.cxx b/src/Main/main.cxx index e12dab4e5..c0778afc2 100644 --- a/src/Main/main.cxx +++ b/src/Main/main.cxx @@ -570,9 +570,9 @@ void fgRenderFrame( void ) { // set that to black and instead modify GL_LIGHT_MODEL_AMBIENT. GLfloat black[4] = { 0.0, 0.0, 0.0, 1.0 }; GLfloat white[4] = { 1.0, 1.0, 1.0, 1.0 }; - ssgGetLight( 0 ) -> setColour( GL_AMBIENT, black ); + glLightModelfv( GL_LIGHT_MODEL_AMBIENT, black ); - glLightModelfv( GL_LIGHT_MODEL_AMBIENT, l->scene_ambient ); + ssgGetLight( 0 ) -> setColour( GL_AMBIENT, l->scene_ambient ); ssgGetLight( 0 ) -> setColour( GL_DIFFUSE, l->scene_diffuse ); // ssgGetLight( 0 ) -> setColour( GL_SPECULAR, l->scene_white );