]> git.mxchange.org Git - flightgear.git/commitdiff
Updates needed for z-ordewring of the cloud layers
authorehofman <ehofman>
Fri, 22 Aug 2003 08:05:00 +0000 (08:05 +0000)
committerehofman <ehofman>
Fri, 22 Aug 2003 08:05:00 +0000 (08:05 +0000)
src/Main/main.cxx

index 7d0026bce9f385e58967a0fbf6aa737c4834d84f..82d9de780726bf0a69e803292c5af1861dbbf300 100644 (file)
@@ -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 );