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.6 by greg, Tue Jun 25 13:11:55 1991 UTC vs.
Revision 1.8 by greg, Tue Jun 25 16:42:03 1991 UTC

# Line 105 | Line 105 | register OBJREC  *so;
105          theta = PI/180.0/2.0 * so->oargs.farg[3];
106          if (theta <= FTINY)
107                  objerror(so, USER, "zero size");
108 <        src->ss = theta >= PI/4 ? 1.0 : tan(theta);
108 >        src->ss = theta >= PI/4.0 ? 1.0 : tan(theta);
109          src->ss2 = 2.0*PI * (1.0 - cos(theta));
110   }
111  
# 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