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.16 by greg, Tue Aug 20 10:05:18 1991 UTC vs.
Revision 2.1 by greg, Tue Nov 12 17:09:42 1991 UTC

# Line 186 | Line 186 | double  s;
186                  for (j = 0; j < 3; j++)
187                          d += (r->rop[j] - av->pos[j]) *
188                                          (av->dir[j] + r->ron[j]);
189 <                if (d*0.5 < -minarad*ambacc)
189 >                if (d*0.5 < -minarad*ambacc-.001)
190                          continue;
191                  /*
192                   *  Jittering final test reduces image artifacts.
# Line 235 | Line 235 | int  al;
235          FVECT   gp, gd;
236                                                  /* compute weight */
237          amb.weight = pow(AVGREFL, (double)al);
238 <        if (r->rweight < 0.1*amb.weight)        /* heuristic */
238 >        if (r->rweight < 0.2*amb.weight)        /* heuristic */
239                  amb.weight = r->rweight;
240                                                  /* compute ambient */
241          amb.rad = doambient(acol, r, amb.weight, gp, gd);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines