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

Comparing ray/src/gen/gendaymtx.c (file contents):
Revision 2.11 by greg, Tue Apr 30 17:05:27 2013 UTC vs.
Revision 2.13 by greg, Fri Oct 4 04:31:18 2013 UTC

# Line 209 | Line 209 | static const CategoryBounds SkyClearCat[8] =
209          { 1.950, 2.800 },
210          { 2.800, 4.500 },
211          { 4.500, 6.200 },
212 <        { 6.200, 12.00 }        /* Clear */
212 >        { 6.200, 12.01 }        /* Clear */
213   };
214  
215   /* Luminous efficacy model coefficients */
# Line 622 | Line 622 | ComputeSky(float *parr)
622          /* Calculate relative horizontal illuminance */
623          norm_diff_illum = CalcRelHorzIllum(parr);
624  
625 +        /* Check for zero sky -- make uniform in that case */
626 +        if (norm_diff_illum <= FTINY) {
627 +                for (i = 1; i < nskypatch; i++)
628 +                        setcolor(parr+3*i, 1., 1., 1.);
629 +                norm_diff_illum = PI;
630 +        }
631          /* Normalization coefficient */
632          norm_diff_illum = diff_illum / norm_diff_illum;
633  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines