correctly.
/* Disable fog effects */
glDisable( GL_FOG );
- /* reverse light direction so the moon is displayed properly */
- glLightfv( GL_LIGHT0, GL_POSITION, l->sun_vec_inv );
-
glPushMatrix();
/* Translate to view position */
/* $Log$
-/* Revision 1.3 1997/12/10 22:37:49 curt
-/* Prepended "fg" on the name of all global structures that didn't have it yet.
-/* i.e. "struct WEATHER {}" became "struct fgWEATHER {}"
+/* Revision 1.4 1997/12/11 04:43:56 curt
+/* Fixed sun vector and lighting problems. I thing the moon is now lit
+/* correctly.
/*
+ * Revision 1.3 1997/12/10 22:37:49 curt
+ * Prepended "fg" on the name of all global structures that didn't have it yet.
+ * i.e. "struct WEATHER {}" became "struct fgWEATHER {}"
+ *
* Revision 1.2 1997/12/09 04:25:33 curt
* Working on adding a global lighting params structure.
*
extern float xMoon, yMoon, zMoon, xSun, ySun, zSun;
extern GLint moon, sun;
extern GLint stars[FG_STAR_LEVELS];
-extern GLfloat fgClearColor[4];
/* Initialize Astronomical Objects */
/* $Log$
-/* Revision 1.1 1997/11/25 23:20:23 curt
-/* Initial revision.
+/* Revision 1.2 1997/12/11 04:43:56 curt
+/* Fixed sun vector and lighting problems. I thing the moon is now lit
+/* correctly.
/*
+ * Revision 1.1 1997/11/25 23:20:23 curt
+ * Initial revision.
+ *
*/
struct fgTIME t);
extern struct OrbElements pltOrbElements[9];
-extern GLfloat fgClearColor[4];
#endif /* _MOON_H_ */
/* $Log$
-/* Revision 1.3 1997/11/25 19:25:35 curt
-/* Changes to integrate Durk's moon/sun code updates + clean up.
+/* Revision 1.4 1997/12/11 04:43:56 curt
+/* Fixed sun vector and lighting problems. I thing the moon is now lit
+/* correctly.
/*
+ * Revision 1.3 1997/11/25 19:25:35 curt
+ * Changes to integrate Durk's moon/sun code updates + clean up.
+ *
* Revision 1.2 1997/10/25 03:24:23 curt
* Incorporated sun, moon, and star positioning code contributed by Durk Talsma.
*
struct SunPos fgCalcSunPos(struct OrbElements sunParams);
extern struct OrbElements pltOrbElements[9];
-extern GLfloat fgClearColor[4];
/* Initialize the Sun */
void fgSunInit();
/* $Log$
-/* Revision 1.2 1997/11/25 19:25:39 curt
-/* Changes to integrate Durk's moon/sun code updates + clean up.
+/* Revision 1.3 1997/12/11 04:43:56 curt
+/* Fixed sun vector and lighting problems. I thing the moon is now lit
+/* correctly.
/*
+ * Revision 1.2 1997/11/25 19:25:39 curt
+ * Changes to integrate Durk's moon/sun code updates + clean up.
+ *
* Revision 1.1 1997/10/25 03:16:12 curt
* Initial revision of code contributed by Durk Talsma.
*