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 1.5 by greg, Tue May 30 20:06:09 1989 UTC vs.
Revision 1.7 by greg, Tue Sep 5 09:46:17 1989 UTC

# Line 203 | Line 203 | double  s;
203                   *  Jittering final test reduces image artifacts.
204                   */
205                  wt = sqrt(e1) + sqrt(e2);
206 <                if (wt > ambacc*(0.9 + 0.2*frandom()))
206 >                wt *= .9 + .2*frandom();
207 >                if (wt > ambacc)
208                          continue;
209                  if (wt <= 1e-3)
210                          wt = 1e3;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines