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.52 by greg, Tue May 31 18:01:09 2005 UTC vs.
Revision 2.53 by greg, Fri Oct 28 16:16:33 2005 UTC

# Line 382 | Line 382 | direct(                                        /* add direct component */
382                  scp->sno = sr.rsrc;
383                                                  /* compute coefficient */
384                  (*f)(scp->coef, p, sr.rdir, si.dom);
385 <                cntord[sn].brt = bright(scp->coef);
385 >                cntord[sn].brt = intens(scp->coef);
386                  if (cntord[sn].brt <= 0.0)
387                          continue;
388   #if SHADCACHE
# Line 399 | Line 399 | direct(                                        /* add direct component */
399                  rayvalue(&sr);
400                  multcolor(sr.rcol, sr.rcoef);
401                  copycolor(scp->val, sr.rcol);
402 <                cntord[sn].brt = bright(scp->val);
402 >                cntord[sn].brt = intens(sr.rcol);
403          }
404                                                  /* sort contributions */
405          qsort(cntord, sn, sizeof(CNTPTR), cntcmp);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines