From ced6b4f520b17a8fba24ceed4b2b00ba0411f640 Mon Sep 17 00:00:00 2001 From: ehofman Date: Fri, 22 Aug 2003 08:05:00 +0000 Subject: [PATCH] Updates needed for z-ordewring of the cloud layers --- src/Main/main.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 );