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

Comparing ray/src/rt/srcsupp.c (file contents):
Revision 2.7 by greg, Thu Aug 24 20:56:08 1995 UTC vs.
Revision 2.8 by greg, Tue Nov 7 12:40:30 1995 UTC

# Line 251 | Line 251 | register OBJREC  *m;
251   }
252  
253  
254 < spotout(r, s, dist)             /* check if we're outside spot region */
254 > spotout(r, s)                   /* check if we're outside spot region */
255   register RAY  *r;
256   register SPOT  *s;
257 int  dist;
257   {
258          double  d;
259          FVECT  vd;
260          
261          if (s == NULL)
262                  return(0);
263 <        if (dist) {                     /* distant source */
263 >        if (s->flen < -FTINY) {         /* distant source */
264                  vd[0] = s->aim[0] - r->rorg[0];
265                  vd[1] = s->aim[1] - r->rorg[1];
266                  vd[2] = s->aim[2] - r->rorg[2];

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines