ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/gen/skybright.cal
(Generate patch)

Comparing ray/src/gen/skybright.cal (file contents):
Revision 2.1 by greg, Tue Nov 12 17:05:15 1991 UTC vs.
Revision 2.2 by greg, Fri Mar 20 12:23:37 1992 UTC

# Line 8 | Line 8
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
# Line 19 | Line 20 | skybright = wmean((Dz+1.01)^10, if(A1, cloudysky, sunn
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, 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;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines