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

Comparing ray/src/rt/glass.c (file contents):
Revision 2.22 by greg, Sat May 10 17:43:01 2014 UTC vs.
Revision 2.23 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   /*
16   *  This definition of glass provides for a quick calculation
# Line 58 | Line 59 | m_glass(               /* color a ray which hit a thin glass surfac
59          double  mirtest, mirdist;
60          RAY  p;
61          int  i;
62 +
63 +        /* PMAP: skip refracted shadow ray if accounted for in photon map */
64 +   if (shadowRayInPmap(r))
65 +                return(1);
66                                                  /* check arguments */
67          if (m->oargs.nfargs == 3)
68                  rindex = RINDEX;                /* default value of n */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines