| # | 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 108 | Line 109 | diraniso( /* compute source contribution */ | |
| 109 | addcolor(cval, ctmp); | |
| 110 | } | |
| 111 | ||
| 112 | + | if (ambRayInPmap(np->rp)) |
| 113 | + | return; /* specular accounted for in photon map */ |
| 114 | + | |
| 115 | if (ldot > FTINY && np->specfl&SP_REFL) { | |
| 116 | /* | |
| 117 | * Compute specular reflection coefficient using | |
| – | Removed lines |
| + | Added lines |
| < | Changed lines (old) |
| > | Changed lines (new) |