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.25 by greg, Thu May 21 13:54:59 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 or ambient ray if accounted for in
64 +           photon map */
65 +        if (shadowRayInPmap(r))
66 +                return(1);
67                                                  /* check arguments */
68          if (m->oargs.nfargs == 3)
69                  rindex = RINDEX;                /* default value of n */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines