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.29 by greg, Tue May 2 15:28:36 1995 UTC vs.
Revision 2.31 by greg, Tue Oct 3 11:53:30 1995 UTC

# Line 89 | Line 89 | int  ar;
89                  maxarad = thescene.cusize / 2.0;
90          } else {
91                  minarad = thescene.cusize / ar;
92 <                maxarad = 16 * minarad;                 /* heuristic */
92 >                maxarad = 64 * minarad;                 /* heuristic */
93                  if (maxarad > thescene.cusize / 2.0)
94                          maxarad = thescene.cusize / 2.0;
95          }
# 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