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.8 by greg, Tue Feb 5 06:00:19 2013 UTC vs.
Revision 2.9 by greg, Sat Feb 9 00:20:24 2013 UTC

# Line 556 | Line 556 | ComputeSky(float *parr)
556                  sky_brightness = CalcSkyBrightness();
557                  sky_clearness =  CalcSkyClearness();
558  
559 +                /* Limit sky clearness */
560 +                if (sky_clearness > 11.9)
561 +                        sky_clearness = 11.9;
562 +
563 +                /* Limit sky brightness */
564 +                if (sky_brightness < 0.01)
565 +                        sky_brightness = 0.01;
566 +
567                  /* Calculate illuminance */
568                  index = GetCategoryIndex();
569                  diff_illum = diff_irrad * CalcDiffuseIllumRatio(index);
# Line 837 | Line 845 | int CalcSkyParamFromIllum()
845                  sky_clearness = 12.0;
846  
847          /* Limit sky brightness */
848 <        if (sky_brightness < 0.05)
848 >        if (sky_brightness < 0.01)
849                          sky_brightness = 0.01;
850  
851          while (((fabs(diff_irrad - test1) > 10.0) ||
# Line 861 | Line 869 | int CalcSkyParamFromIllum()
869                          sky_clearness = 12.0;
870          
871                  /* Limit sky brightness */
872 <                if (sky_brightness < 0.05)
872 >                if (sky_brightness < 0.01)
873                          sky_brightness = 0.01;
874          }
875  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines