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.31 by greg, Sat Dec 28 18:05:14 2019 UTC vs.
Revision 2.32 by greg, Mon Jan 6 21:02:57 2020 UTC

# Line 667 | Line 667 | ComputeSky(float *parr)
667                  diff_illum = diff_irrad * WHTEFFICACY;
668                  dir_illum = dir_irrad * WHTEFFICACY;
669          }
670
671        if (bright(skycolor) <= 1e-4) {                 /* 0 sky component? */
672                memset(parr, 0, sizeof(float)*3*nskypatch);
673                return;
674        }
670          /* Compute ground radiance (include solar contribution if any) */
671          parr[0] = diff_illum;
672          if (altitude > 0)
# Line 679 | Line 674 | ComputeSky(float *parr)
674          parr[2] = parr[1] = parr[0] *= (1./PI/WHTEFFICACY);
675          multcolor(parr, grefl);
676  
677 +        if (bright(skycolor) <= 1e-4) {                 /* 0 sky component? */
678 +                memset(parr+3, 0, sizeof(float)*3*(nskypatch-1));
679 +                return;
680 +        }
681          /* Calculate Perez sky model parameters */
682          CalcPerezParam(sun_zenith, sky_clearness, sky_brightness, index);
683  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines