Fixed sun vector and lighting problems. I thing the moon is now lit
correctly.
This commit is contained in:
@@ -89,9 +89,6 @@ void fgAstroRender() {
|
||||
/* 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 */
|
||||
@@ -121,10 +118,14 @@ void fgAstroRender() {
|
||||
|
||||
|
||||
/* $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.
|
||||
*
|
||||
|
||||
@@ -35,7 +35,6 @@ extern struct CelestialCoord
|
||||
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 */
|
||||
@@ -49,7 +48,11 @@ void fgAstroRender();
|
||||
|
||||
|
||||
/* $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.
|
||||
*
|
||||
*/
|
||||
|
||||
@@ -46,15 +46,18 @@ struct CelestialCoord fgCalculateMoon(struct OrbElements Params,
|
||||
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.
|
||||
*
|
||||
|
||||
@@ -29,7 +29,6 @@
|
||||
|
||||
struct SunPos fgCalcSunPos(struct OrbElements sunParams);
|
||||
extern struct OrbElements pltOrbElements[9];
|
||||
extern GLfloat fgClearColor[4];
|
||||
|
||||
/* Initialize the Sun */
|
||||
void fgSunInit();
|
||||
@@ -42,9 +41,13 @@ void fgSunRender();
|
||||
|
||||
|
||||
/* $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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user