# | Line 14 | Line 14 | static const char RCSid[] = "$Id$"; | |
---|---|---|
14 | #include "source.h" | |
15 | #include "func.h" | |
16 | #include "random.h" | |
17 | + | #include "pmapmat.h" |
18 | ||
19 | #ifndef MAXITER | |
20 | #define MAXITER 10 /* maximum # specular ray attempts */ | |
# | Line 92 | Line 93 | dirashik( /* compute source contribution */ | |
93 | scalecolor(ctmp, dtmp); | |
94 | addcolor(cval, ctmp); | |
95 | ||
96 | < | if (!(np->specfl & SPA_REFL)) |
96 | > | if (!(np->specfl & SPA_REFL) || ambRayInPmap(np->rp)) |
97 | return; | |
98 | /* | |
99 | * Compute specular reflection coefficient |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |