Fixed sun vector and lighting problems. I thing the moon is now lit

correctly.
This commit is contained in:
curt
1997-12-11 04:43:53 +00:00
parent 5bf6d83d2d
commit 5b779f5200
4 changed files with 25 additions and 15 deletions
+7 -6
View File
@@ -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.
*