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.59 by greg, Fri May 16 23:39:24 2014 UTC vs.
Revision 2.60 by greg, Sat May 17 00:49:17 2014 UTC

# Line 737 | Line 737 | doambient(                             /* compute ambient component */
737                          if (ra[1] < minarad)
738                                  ra[1] = minarad;
739                  }
740 <                ra[0] *= d = 1.0/sqrt(sqrt(wt));
740 >                ra[0] *= d = 1.0/sqrt(wt);
741                  if ((ra[1] *= d) > 2.0*ra[0])
742                          ra[1] = 2.0*ra[0];
743                  if (ra[1] > maxarad) {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines