From 268a59d0a972ae586cce8e7fb9488a7ff1b7552b Mon Sep 17 00:00:00 2001 From: curt Date: Tue, 9 Dec 1997 04:25:25 +0000 Subject: [PATCH] Working on adding a global lighting params structure. --- Scenery/astro.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/Scenery/astro.c b/Scenery/astro.c index a9534696..8ebe0623 100644 --- a/Scenery/astro.c +++ b/Scenery/astro.c @@ -69,11 +69,13 @@ void fgAstroInit() { /* Render Astronomical Objects */ void fgAstroRender() { struct FLIGHT *f; + struct fgLIGHT *l; struct VIEW *v; struct fgTIME *t; double angle; f = ¤t_aircraft.flight; + l = &cur_light_params; t = &cur_time_params; v = ¤t_view; @@ -88,7 +90,7 @@ void fgAstroRender() { glDisable( GL_FOG ); /* reverse light direction so the moon is displayed properly */ - glLightfv( GL_LIGHT0, GL_POSITION, t->sun_vec_inv ); + glLightfv( GL_LIGHT0, GL_POSITION, l->sun_vec_inv ); glPushMatrix(); @@ -119,7 +121,10 @@ void fgAstroRender() { /* $Log$ -/* Revision 1.1 1997/11/25 23:20:22 curt -/* Initial revision. +/* Revision 1.2 1997/12/09 04:25:33 curt +/* Working on adding a global lighting params structure. /* + * Revision 1.1 1997/11/25 23:20:22 curt + * Initial revision. + * */ -- 2.39.5