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.4 by greg, Fri Oct 2 16:14:38 1992 UTC vs.
Revision 2.5 by greg, Wed May 3 09:46:31 1995 UTC

# Line 146 | Line 146 | FVECT  pg, dg;
146                                  arad += dp->r;
147                          }
148                  }
149 <        if (ns > 0) {                   /* perform super-sampling */
149 >        if (ns > 0 && arad > FTINY && ndivs/arad < minarad)
150 >                ns = 0;                 /* close enough */
151 >        else if (ns > 0) {              /* else perform super-sampling */
152                  comperrs(div, &hemi);                   /* compute errors */
153                  qsort(div, ndivs, sizeof(AMBSAMP), ambcmp);     /* sort divs */
154                                                  /* super-sample */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines