8 |
|
Additional arguments required for calculation of skybright: |
9 |
|
|
10 |
|
A1 - boolean, positive for cloudy sky |
11 |
+ |
(A1>=2 for cloudy uniform sky) |
12 |
|
A2 - zenith brightness |
13 |
|
A3 - ground plane brightness |
14 |
|
A4 - normalization factor based on sun direction |
20 |
|
|
21 |
|
wmean(a, x, b, y) = (a*x + b*y) / (a + b); |
22 |
|
|
23 |
< |
cloudysky = A2 * (1 + 2*Dz) / 3; |
23 |
> |
cloudysky = A2 * if(A1-1.5, 1, (1 + 2*Dz)/3); |
24 |
|
|
25 |
|
sunnysky = A2 * (.91 + 10*exp(-3*gamma) + .45*cosgamma*cosgamma) |
26 |
|
* if( Dz - .01, 1.0 - exp(-.32/Dz), 1.0) / A4; |