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

Comparing ray/src/rt/source.c (file contents):
Revision 1.13 by greg, Mon Jun 19 11:44:58 1989 UTC vs.
Revision 1.15 by greg, Thu Jul 20 13:51:34 1989 UTC

# Line 329 | Line 329 | char  *p;                      /* data for f */
329                                                  /* compute coefficient */
330                  (*f)(srccnt[sn].val, p, srccnt[sn].dir, srccnt[sn].dom);
331                  cntord[sn].brt = bright(srccnt[sn].val);
332 <                if (cntord[sn].brt <= FTINY)
332 >                if (cntord[sn].brt <= 0.0)
333                          continue;
334                                                  /* compute intersection */
335                  if (!( source[sn].sflags & SDISTANT ?
# Line 379 | Line 379 | char  *p;                      /* data for f */
379                  if (localhit(&sr, &thescene) &&
380                                  sr.ro != source[cntord[sn].sno].so) {
381                                                  /* check for transmission */
382 <                        if (sr.clipset != NULL && inset(sr.clipset,sr.ro->omod))
383 <                                raytrans(&sr);          /* object is clipped */
384 <                        else
385 <                                rayshade(&sr, sr.ro->omod);
382 >                        rayshade(&sr, sr.ro->omod);
383                          if (bright(sr.rcol) <= FTINY)
384                                  continue;       /* missed! */
385                          (*f)(srccnt[cntord[sn].sno].val, p,

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines