Removed code to make sun appear larger at the horizon.
This commit is contained in:
parent
2170594b5c
commit
717254c2cd
1 changed files with 0 additions and 5 deletions
|
@ -183,11 +183,6 @@ void SolarSystem::rebuild()
|
|||
xglPushMatrix();
|
||||
{
|
||||
double sun_size = 1400.0;
|
||||
// daily variation sun gets larger near horizon
|
||||
if ( sun_angle > 84.0 ) {
|
||||
double sun_grow = 9.0 * fabs(94.0 - sun_angle);
|
||||
sun_size += 0.5 * sun_size * cos( sun_grow * DEG_TO_RAD);
|
||||
}
|
||||
xglTranslatef(x,y,z);
|
||||
xglColor3fv(amb);
|
||||
glutSolidSphere(sun_size, 10, 10);
|
||||
|
|
Loading…
Add table
Reference in a new issue