Atmosphere.cpp   Atmosphere.cpp 
skipping to change at line 223 skipping to change at line 223
dark_angle *= -1; dark_angle *= -1;
} }
if (separation_angle < dark_angle) if (separation_angle < dark_angle)
eclipseFactor = min; eclipseFactor = min;
else else
eclipseFactor = min + (1.f-min)*(separation_angle-da rk_angle)/(touch_angle-dark_angle); eclipseFactor = min + (1.f-min)*(separation_angle-da rk_angle)/(touch_angle-dark_angle);
} }
else else
eclipseFactor = 1.f; eclipseFactor = 1.f;
// TODO: compute eclipse factor also for Lunar eclipses! (lp:#147154 6)
// No need to calculate if not visible // No need to calculate if not visible
if (!fader.getInterstate()) if (!fader.getInterstate())
{ {
averageLuminance = 0.001f + lightPollutionLuminance; averageLuminance = 0.001f + lightPollutionLuminance;
return; return;
} }
// Calculate the atmosphere RGB for each point of the grid // Calculate the atmosphere RGB for each point of the grid
float sunPos[3]; float sunPos[3];
 End of changes. 1 change blocks. 
0 lines changed or deleted 1 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/