1
0
Fork 0

Updates needed for z-ordewring of the cloud layers

This commit is contained in:
ehofman 2003-08-22 08:05:00 +00:00
parent 9c2cc7c309
commit ced6b4f520

View 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 );