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; |
138 |
|
/* Compute horizontal radiance */ |
139 |
|
if (cloudy) { |
140 |
|
groundbr = zenithbr*0.777778; |
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"); |