fgMoonInit();
}
- /* Disable fog effects */
- xglDisable( GL_FOG );
-
/* set the sun position */
/* xglLightfv( GL_LIGHT0, GL_POSITION, l->sun_vec_inv ); */
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.
cos(moonPos.Declination);
zMoon = 60000.0 * sin(moonPos.Declination);
- glutSolidSphere(1.0, 15, 15);
+ glutSolidSphere(1.0, 10, 10);
xglEndList();
}
printf("Rendering the sky.\n");
- xglDisable( GL_LIGHTING );
- xglDisable( GL_CULL_FACE );
- xglShadeModel( GL_SMOOTH );
-
xglPushMatrix();
/* Translate to view position */
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.
*