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

Comparing ray/src/gen/gensky.c (file contents):
Revision 1.3 by greg, Mon Mar 12 09:49:25 1990 UTC vs.
Revision 1.4 by greg, Tue Mar 19 12:09:27 1991 UTC

# Line 128 | Line 128 | computesky()                   /* compute sky parameters */
128          if (zenithbr <= 0.0)
129                  if (cloudy) {
130                          zenithbr = 8.6*sundir[2] + .123;
131 <                        zenithbr *= 1000.0/683.0;
131 >                        zenithbr *= 1000.0*.0064/3.;
132                  } else {
133                          zenithbr = (1.376*turbidity-1.81)*tan(altitude)+0.38;
134 <                        zenithbr *= 1000.0/683.0;
134 >                        zenithbr *= 1000.0*.0064/3.;
135                  }
136          if (zenithbr < 0.0)
137                  zenithbr = 0.0;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines