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.25 by greg, Tue Feb 24 19:39:26 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  
54 <
55 < static double
54 > static
55 > double
56   mylog(          /* special log for extinction coefficients */
57          double  x
58   )
# Line 83 | 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))
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