# | Line 11 | Line 11 | static const char RCSid[] = "$Id$"; | |
---|---|---|
11 | #include "otypes.h" | |
12 | #include "rtotypes.h" | |
13 | #include "source.h" | |
14 | + | #include "pmapmat.h" |
15 | ||
16 | /* | |
17 | * The real arguments for MAT_MIRROR are simply: | |
# | Line 39 | Line 40 | m_mirror( /* shade mirrored ray */ | |
40 | RAY nr; | |
41 | int rpure = 1; | |
42 | int i; | |
43 | + | |
44 | + | /* PMAP: skip specular refl via ambient bounce if already accounted for |
45 | + | * in photon map */ |
46 | + | if (ambRayInPmap(r)) |
47 | + | return(1); |
48 | /* check arguments */ | |
49 | if (m->oargs.nfargs != 3 || m->oargs.nsargs > 1) | |
50 | objerror(m, USER, "bad number of arguments"); |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |