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.24 by greg, Sat May 10 17:43:01 2014 UTC vs.
Revision 2.28 by greg, Wed Oct 28 15:45:58 2015 UTC

# Line 10 | Line 10 | static const char      RCSid[] = "$Id$";
10   #include  "ray.h"
11   #include  "otypes.h"
12   #include  "rtotypes.h"
13 + #include  "pmapmat.h"
14  
15   #ifdef  DISPERSE
16   #include  "source.h"
# Line 50 | Line 51 | static double mylog(double  x);
51  
52   #define  MINCOS         0.997           /* minimum dot product for dispersion */
53  
53
54   static double
55   mylog(          /* special log for extinction coefficients */
56          double  x
# Line 83 | Line 83 | m_dielectric(  /* color a ray which hit a dielectric in
83          RAY  p;
84          int  i;
85  
86 +        /* PMAP: skip refracted shadow or ambient ray if accounted for in
87 +           photon map */
88 +        if (shadowRayInPmap(r) || ambRayInPmap(r))
89 +                return(1);
90 +        
91          if (m->oargs.nfargs != (m->otype==MAT_DIELECTRIC ? 5 : 8))
92                  objerror(m, USER, "bad arguments");
93  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines