From: ehofman Date: Fri, 22 Aug 2003 08:05:00 +0000 (+0000) Subject: Updates needed for z-ordewring of the cloud layers X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=ced6b4f520b17a8fba24ceed4b2b00ba0411f640;p=flightgear.git Updates needed for z-ordewring of the cloud layers --- diff --git a/src/Main/main.cxx b/src/Main/main.cxx index 7d0026bce..82d9de780 100644 --- a/src/Main/main.cxx +++ b/src/Main/main.cxx @@ -343,7 +343,7 @@ void trRenderFrame( void ) { // we need a white diffuse light for the phase of the moon ssgGetLight( 0 ) -> setColour( GL_DIFFUSE, white ); - thesky->preDraw(); + thesky->preDraw( cur_fdm_state->get_Altitude() * SG_FEET_TO_METER ); // draw the ssg scene // return to the desired diffuse color @@ -678,7 +678,7 @@ void fgRenderFrame() { // we need a white diffuse light for the phase of the moon ssgGetLight( 0 ) -> setColour( GL_DIFFUSE, white ); - thesky->preDraw(); + thesky->preDraw( cur_fdm_state->get_Altitude() * SG_FEET_TO_METER ); // return to the desired diffuse color ssgGetLight( 0 ) -> setColour( GL_DIFFUSE, l->scene_diffuse );