]> git.mxchange.org Git - flightgear.git/commitdiff
Oops, a couple more sky tweaks.
authorcurt <curt>
Fri, 30 Jun 2000 23:51:11 +0000 (23:51 +0000)
committercurt <curt>
Fri, 30 Jun 2000 23:51:11 +0000 (23:51 +0000)
src/Main/main.cxx

index 6a9a2971a2c5d48555d9ac456e66528a2a90bbe0..c30779b25da197aff00c1028ecf48bca5bb5ef07 100644 (file)
@@ -279,14 +279,6 @@ void fgRenderFrame( void ) {
     // FGView *v = &current_view;
     static double last_visibility = -9999;
 
-#if 0
-    static bool in_puff = false;
-    static double puff_length = 0;
-    static double puff_progression = 0;
-    const double ramp_up = 0.15;
-    const double ramp_down = 0.15;
-#endif
-
     double angle;
     // GLfloat black[4] = { 0.0, 0.0, 0.0, 1.0 };
     // GLfloat white[4] = { 1.0, 1.0, 1.0, 1.0 };
@@ -580,13 +572,13 @@ void fgRenderFrame( void ) {
        // }
 
        // draw the sky backdrop
-       thesky->draw_background();
+       thesky->preDraw();
 
        // draw the ssg scene
        ssgCullAndDraw( scene );
 
        // draw the sky cloud layers
-       thesky->draw_scene( cur_fdm_state->get_Altitude() * FEET_TO_METER );
+       thesky->postDraw( cur_fdm_state->get_Altitude() * FEET_TO_METER );
 
        // display HUD && Panel
        glDisable( GL_FOG );
@@ -1355,6 +1347,7 @@ int main( int argc, char **argv ) {
                   ephem->getPlanets(), 60000.0,
                   ephem->getNumStars(),
                   ephem->getStars(), 60000.0 );
+    thesky->add_cloud_layer( 213.0, 50.0, 50.0, SG_CLOUD_MOSTLY_SUNNY );
     thesky->add_cloud_layer( 2600.0, 200.0, 50.0, SG_CLOUD_MOSTLY_SUNNY );
     thesky->add_cloud_layer( 6000.0, 20.0, 10.0, SG_CLOUD_CIRRUS );