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

Comparing ray/src/rt/pmapsrc.c (file contents):
Revision 2.5 by greg, Fri May 22 11:38:26 2015 UTC vs.
Revision 2.6 by greg, Thu May 28 12:27:22 2015 UTC

# Line 748 | Line 748 | void emitPhoton (const EmissionMap* emap, RAY* ray)
748     photonOrigin [emap -> src -> so -> otype] ((EmissionMap*)emap);
749     /* If we have a local glow source with a maximum radius, then
750        restrict our photon to the specified distance (otherwise no limit) */
751 <   if (mod -> otype == MAT_GLOW && emap -> src -> so -> otype != OBJ_SOURCE
751 >   if (mod -> otype == MAT_GLOW && !(emap -> src -> sflags & SDISTANT)
752                  && mod -> oargs.farg[3] > FTINY)
753        ray -> rmax = mod -> oargs.farg[3];
754     else

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines