# | Line 29 | Line 29 | |
---|---|---|
29 | contrib, or dedicated caustic photon map. | |
30 | */ | |
31 | #define shadowRayInPmap(r) ((r) -> crtype & SHADOW && \ | |
32 | < | (ambounce < 0 || causticPhotonMapping)) |
32 | > | (ambounce < 0 || ((r) -> crtype & AMBIENT ? \ |
33 | > | photonMapping : causticPhotonMapping))) |
34 | ||
35 | /* Check if scattered ray spawns a caustic photon */ | |
36 | #define PMAP_CAUSTICRAY(r) ((r) -> rtype & SPECULAR) |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |