From: curt Date: Fri, 19 Dec 1997 16:44:57 +0000 (+0000) Subject: Working on scene rendering order and options. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=37ec7421aaeafd3b0051473448107d2f89f9756b;p=simgear.git Working on scene rendering order and options. --- diff --git a/Scenery/astro.c b/Scenery/astro.c index 4e1558e7..d49af701 100644 --- a/Scenery/astro.c +++ b/Scenery/astro.c @@ -87,9 +87,6 @@ void fgAstroRender() { fgMoonInit(); } - /* Disable fog effects */ - xglDisable( GL_FOG ); - /* set the sun position */ /* xglLightfv( GL_LIGHT0, GL_POSITION, l->sun_vec_inv ); */ @@ -115,16 +112,16 @@ void fgAstroRender() { fgSunRender(); xglPopMatrix(); - - /* reenable fog effects */ - xglEnable( GL_FOG ); } /* $Log$ -/* Revision 1.9 1997/12/18 23:32:35 curt -/* First stab at sky dome actually starting to look reasonable. :-) +/* Revision 1.10 1997/12/19 16:45:01 curt +/* Working on scene rendering order and options. /* + * Revision 1.9 1997/12/18 23:32:35 curt + * First stab at sky dome actually starting to look reasonable. :-) + * * Revision 1.8 1997/12/15 23:54:57 curt * Add xgl wrappers for debugging. * Generate terrain normals on the fly. diff --git a/Scenery/moon.c b/Scenery/moon.c index 203d70bf..17446e30 100644 --- a/Scenery/moon.c +++ b/Scenery/moon.c @@ -258,7 +258,7 @@ void fgMoonInit() { cos(moonPos.Declination); zMoon = 60000.0 * sin(moonPos.Declination); - glutSolidSphere(1.0, 15, 15); + glutSolidSphere(1.0, 10, 10); xglEndList(); } diff --git a/Scenery/sky.c b/Scenery/sky.c index ef81c8b5..dc262837 100644 --- a/Scenery/sky.c +++ b/Scenery/sky.c @@ -107,10 +107,6 @@ void fgSkyRender() { printf("Rendering the sky.\n"); - xglDisable( GL_LIGHTING ); - xglDisable( GL_CULL_FACE ); - xglShadeModel( GL_SMOOTH ); - xglPushMatrix(); /* Translate to view position */ @@ -159,17 +155,16 @@ void fgSkyRender() { xglEnd(); xglPopMatrix(); - - xglShadeModel( GL_FLAT ); - xglEnable( GL_CULL_FACE ); - xglEnable( GL_LIGHTING ); } /* $Log$ -/* Revision 1.3 1997/12/18 23:32:36 curt -/* First stab at sky dome actually starting to look reasonable. :-) +/* Revision 1.4 1997/12/19 16:45:02 curt +/* Working on scene rendering order and options. /* + * Revision 1.3 1997/12/18 23:32:36 curt + * First stab at sky dome actually starting to look reasonable. :-) + * * Revision 1.2 1997/12/18 04:07:03 curt * Worked on properly translating and positioning the sky dome. *