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 1.7 by greg, Tue Jun 25 15:34:17 1991 UTC vs.
Revision 1.8 by greg, Tue Jun 25 16:42:03 1991 UTC

# Line 288 | Line 288 | FVECT  nrm;            /* source surface normal */
288  
289          d = DOT(sp->aim, nrm);
290          if (d > FTINY)                  /* center in front? */
291 <                return(0);
291 >                return(1);
292                                          /* else check horizon */
293          d1 = 1. - sp->siz/(2.*PI);
294 <        return(1.-FTINY-d*d > d1*d1);
294 >        return(1.-FTINY-d*d < d1*d1);
295   }
296  
297  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines