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

Comparing ray/src/rt/dielectric.c (file contents):
Revision 2.25 by greg, Tue Feb 24 19:39:26 2015 UTC vs.
Revision 2.26 by rschregle, Wed May 20 13:12:06 2015 UTC

# Line 84 | Line 84 | m_dielectric(  /* color a ray which hit a dielectric in
84          RAY  p;
85          int  i;
86  
87 <        /* PMAP: skip refracted shadow ray if accounted for by photon map */
88 <        if (shadowRayInPmap(r))
87 >        /* PMAP: skip refracted shadow or ambient ray if accounted for in
88 >           photon map */
89 >        if (shadowRayInPmap(r) || ambRayInPmap(r))
90                  return(1);
91          
92          if (m->oargs.nfargs != (m->otype==MAT_DIELECTRIC ? 5 : 8))

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines