A small update to the fog punch through code
This commit is contained in:
parent
e5e1e165b9
commit
21c16b4a51
@ -341,11 +341,7 @@ bool SGSun::repaint( double sun_angle, double new_visibility ) {
|
||||
if ( visibility != new_visibility ) {
|
||||
static double sqrt_m_log01 = sqrt( -log( 0.01 ) );
|
||||
visibility = new_visibility;
|
||||
if ( visibility < 8000 ) {
|
||||
sun_exp2_punch_through = sqrt_m_log01 / (visibility * 10);
|
||||
} else {
|
||||
sun_exp2_punch_through = sqrt_m_log01 / (8000 * 10);
|
||||
}
|
||||
sun_exp2_punch_through = sqrt_m_log01 / (visibility * 15);
|
||||
}
|
||||
|
||||
if (prev_sun_angle != sun_angle)
|
||||
|
Loading…
Reference in New Issue
Block a user