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.18 by greg, Wed Nov 29 14:35:27 1989 UTC vs.
Revision 1.19 by greg, Thu Jan 11 11:06:22 1990 UTC

# Line 338 | Line 338 | char  *p;                      /* data for f */
338                                  (source[sn].so, &sr) ))
339                          continue;
340                                                  /* compute contribution */
341 <                rayshade(&sr, sr.ro->omod);
341 >                raycont(&sr);
342                  multcolor(srccnt[sn].val, sr.rcol);
343                  cntord[sn].brt = bright(srccnt[sn].val);
344          }
# Line 376 | Line 376 | char  *p;                      /* data for f */
376                                                  /* test for hit */
377                  rayorigin(&sr, r, SHADOW, 1.0);
378                  VCOPY(sr.rdir, srccnt[cntord[sn].sno].dir);
379 +                sr.rsrc = cntord[sn].sno;
380                  if (localhit(&sr, &thescene) &&
381                                  sr.ro != source[cntord[sn].sno].so) {
382                                                  /* check for transmission */
383 <                        if (sr.clipset != NULL && inset(sr.clipset, sr.ro->omod))
383 <                                raytrans(&sr);
384 <                        else
385 <                                rayshade(&sr, sr.ro->omod);
383 >                        raycont(&sr);
384                          if (bright(sr.rcol) <= FTINY)
385                                  continue;       /* missed! */
386                          (*f)(srccnt[cntord[sn].sno].val, p,

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines