# | 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 */ |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |