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 2.55 by greg, Thu Sep 7 05:20:54 2006 UTC vs.
Revision 2.57 by greg, Thu Jul 17 18:26:01 2008 UTC

# Line 86 | Line 86 | marksources(void)                      /* find and mark source objects */
86                          continue;
87                                          /* find material */
88                  m = findmaterial(objptr(o->omod));
89 <                if (m == NULL || !islight(m->otype))
89 >                if (m == NULL)
90 >                        continue;
91 >                if (m->otype == MAT_CLIP) {
92 >                        markclip(m);    /* special case for antimatter */
93 >                        continue;
94 >                }
95 >                if (!islight(m->otype))
96                          continue;       /* not source modifier */
97          
98                  if (m->oargs.nfargs != (m->otype == MAT_GLOW ? 4 :
# Line 403 | Line 409 | direct(                                        /* add direct component */
409                  rayvalue(&sr);
410                  multcolor(sr.rcol, sr.rcoef);
411                  copycolor(scp->val, sr.rcol);
412 <                cntord[sn].brt = intens(sr.rcol);
412 >                cntord[sn].brt = bright(sr.rcol);
413          }
414                                                  /* sort contributions */
415          qsort(cntord, sn, sizeof(CNTPTR), cntcmp);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines