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

Comparing ray/src/rt/ambcomp.c (file contents):
Revision 2.67 by greg, Fri Oct 17 20:47:59 2014 UTC vs.
Revision 2.68 by greg, Thu Oct 23 18:19:14 2014 UTC

# Line 218 | Line 218 | samp_hemi(                             /* sample indirect hemisphere */
218                          wt > (d = 0.8*intens(rcol)*r->rweight/(ambdiv*minweight)))
219                  wt = d;                 /* avoid ray termination */
220          n = sqrt(ambdiv * wt) + 0.5;
221 <        i = 1 + 8*(ambacc > FTINY);     /* minimum number of samples */
221 >        i = 1 + 5*(ambacc > FTINY);     /* minimum number of samples */
222          if (n < i)
223                  n = i;
224                                          /* allocate sampling array */
# Line 694 | Line 694 | doambient(                             /* compute ambient component */
694                  return(0);
695  
696          if ((ra == NULL) & (pg == NULL) & (dg == NULL) ||
697 <                        (hp->sampOK < 0) | (hp->ns < 9)) {
697 >                        (hp->sampOK < 0) | (hp->ns < 6)) {
698                  free(hp);               /* Hessian not requested/possible */
699                  return(-1);             /* value-only return value */
700          }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines