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.30 by greg, Wed May 3 09:46:27 1995 UTC vs.
Revision 2.31 by greg, Tue Oct 3 11:53:30 1995 UTC

# Line 279 | Line 279 | double s;
279                   *  Jittering final test reduces image artifacts.
280                   */
281                  wt = sqrt(e1) + sqrt(e2);
282 <                wt *= .9 + .2*urand(9015+samplendx);
283 <                if (wt > ambacc)
282 >                if (wt > ambacc*(.9+.2*urand(9015+samplendx)))
283                          continue;
284                  if (wt <= 1e-3)
285                          wt = 1e3;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines