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

Comparing ray/src/rt/ambient.c (file contents):
Revision 2.88 by greg, Fri May 9 23:08:50 2014 UTC vs.
Revision 2.89 by greg, Sun May 11 19:03:37 2014 UTC

# Line 109 | Line 109 | setambres(                             /* set ambient resolution */
109                                                  /* set min & max radii */
110          if (ar <= 0) {
111                  minarad = 0;
112 <                maxarad = thescene.cusize*0.5;
112 >                maxarad = thescene.cusize*0.2;
113          } else {
114                  minarad = thescene.cusize / ar;
115                  maxarad = 64.0 * minarad;               /* heuristic */
116 <                if (maxarad > thescene.cusize*0.5)
117 <                        maxarad = thescene.cusize*0.5;
116 >                if (maxarad > thescene.cusize*0.2)
117 >                        maxarad = thescene.cusize*0.2;
118          }
119          if (minarad <= FTINY)
120                  minarad = 10.0*FTINY;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines