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.72 by greg, Mon Apr 6 21:09:07 2020 UTC vs.
Revision 2.73 by greg, Fri Jul 3 00:42:20 2020 UTC

# Line 434 | Line 434 | direct(                                        /* add direct component */
434                  cntord[sn].sndx = sn;
435                  scp = srccnt + sn;
436                  scp->sno = sr.rsrc;
437 <                                                /* compute coefficient */
438 <                (*f)(scp->coef, p, sr.rdir, si.dom);
439 <                cntord[sn].brt = intens(scp->coef);
440 <                if (cntord[sn].brt <= 0.0)
441 <                        continue;
442 < #if SHADCACHE
443 <                                                /* check shadow cache */
437 > #if SHADCACHE                                   /* check shadow cache */
438                  if (si.np == 1 && srcblocked(&sr)) {
439                          cntord[sn].brt = 0.0;
440                          continue;
441                  }
442   #endif
443 +                                                /* compute coefficient */
444 +                (*f)(scp->coef, p, sr.rdir, si.dom);
445 +                cntord[sn].brt = intens(scp->coef);
446 +                if (cntord[sn].brt <= 0.0)
447 +                        continue;
448                  VCOPY(scp->dir, sr.rdir);
449                  copycolor(sr.rcoef, scp->coef);
450                                                  /* compute potential */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines