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.56 by greg, Fri May 9 20:05:00 2014 UTC vs.
Revision 2.57 by greg, Fri May 9 22:53:11 2014 UTC

# Line 738 | Line 738 | doambient(                             /* compute ambient component */
738                                  ra[0] = maxarad;
739                  }
740                                          /* flag encroached directions */
741 <                if ((wt >= 0.5-FTINY) & (crlp != NULL))
741 >                if ((wt >= 0.89*AVGREFL) & (crlp != NULL))
742                          *crlp = ambcorral(hp, uv, ra[0]*ambacc, ra[1]*ambacc);
743                  if (pg != NULL) {       /* cap gradient if necessary */
744                          d = pg[0]*pg[0]*ra[0]*ra[0] + pg[1]*pg[1]*ra[1]*ra[1];

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines