ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/rt/srcsamp.c
(Generate patch)

Comparing ray/src/rt/srcsamp.c (file contents):
Revision 2.2 by greg, Mon Nov 25 09:52:49 1991 UTC vs.
Revision 2.3 by greg, Tue Jul 21 12:47:12 1992 UTC

# Line 92 | Line 92 | nextsample:
92          }
93          if (source[si->sn].sflags & SDISTANT)
94                  return(FHUGE);
95 <        if (si->dom <= FTINY)
95 >        if (si->dom <= 1e-4)
96                  goto nextsample;                /* behind source? */
97          si->dom /= d*d;
98          return(d);              /* sample OK, return distance */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines