Working on scene rendering order and options.
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user