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.1 by greg, Thu Feb 2 11:16:29 1989 UTC vs.
Revision 1.3 by greg, Mon Mar 12 09:49:25 1990 UTC

# Line 133 | Line 133 | computesky()                   /* compute sky parameters */
133                          zenithbr = (1.376*turbidity-1.81)*tan(altitude)+0.38;
134                          zenithbr *= 1000.0/683.0;
135                  }
136 +        if (zenithbr < 0.0)
137 +                zenithbr = 0.0;
138                                          /* Compute horizontal radiance */
139          if (cloudy) {
140                  groundbr = zenithbr*0.777778;
# Line 157 | Line 159 | computesky()                   /* compute sky parameters */
159  
160   printsky()                      /* print out sky */
161   {
160        register int  i;
161
162          if (dosun) {
163                  printf("\nvoid light solar\n");
164                  printf("0\n0\n");

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines