[Plib-cvs] plib/examples/src/ssg/sky sky.cxx,1.2,1.3
Brought to you by:
sjbaker
From: Steve B. <sj...@us...> - 2003-09-26 14:56:05
|
Update of /cvsroot/plib/plib/examples/src/ssg/sky In directory sc8-pr-cvs1:/tmp/cvs-serv28108/plib/examples/src/ssg/sky Modified Files: sky.cxx Log Message: More replacement of 'sun' with 'sol'. Index: sky.cxx =================================================================== RCS file: /cvsroot/plib/plib/examples/src/ssg/sky/sky.cxx,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- sky.cxx 26 Aug 2003 21:36:53 -0000 1.2 +++ sky.cxx 26 Sep 2003 14:56:01 -0000 1.3 @@ -252,8 +252,8 @@ sky -> repositionFlat ( campos.xyz, 0, dt ); sky -> modifyVisibility ( campos.xyz[SG_Z], dt ); - double sun_angle = bodies[0]->getAngle(); - double sky_brightness = (1.0 + cos(sun_angle))/2.0; // 0.0 - 1.0 + double sol_angle = bodies[0]->getAngle(); + double sky_brightness = (1.0 + cos(sol_angle))/2.0; // 0.0 - 1.0 double scene_brightness = pow(sky_brightness,0.5); /* set sky color */ @@ -269,12 +269,12 @@ cloud_color[3] = fog_color[3] = base_fog_color[3]; /* repaint the sky */ - sky -> repaint ( sky_color, fog_color, cloud_color, sun_angle, nplanets, planet_data, nstars, star_data ); + sky -> repaint ( sky_color, fog_color, cloud_color, sol_angle, nplanets, planet_data, nstars, star_data ); /* set light source */ - sgCoord sunpos; - bodies[0] -> getPosition ( & sunpos ); - ssgGetLight ( 0 ) -> setPosition ( sunpos.xyz ) ; + sgCoord solpos; + bodies[0] -> getPosition ( & solpos ); + ssgGetLight ( 0 ) -> setPosition ( solpos.xyz ) ; scene_ambient[0] = base_ambient[0] * scene_brightness; scene_ambient[1] = base_ambient[1] * scene_brightness; @@ -456,9 +456,9 @@ /* Set up the Sun */ - sgVec3 sunposn ; - sgSetVec3 ( sunposn, 0, 0, 0 ) ; - ssgGetLight ( 0 ) -> setPosition ( sunposn ) ; + sgVec3 solposn ; + sgSetVec3 ( solposn, 0, 0, 0 ) ; + ssgGetLight ( 0 ) -> setPosition ( solposn ) ; } |