59 |
|
causticPmap || contribPmap) && \ |
60 |
|
(r) -> crtype & (AMBIENT | SHADOW) && \ |
61 |
|
(r) -> rtype & (TRANS | REFRACTED)) |
62 |
< |
|
62 |
> |
|
63 |
|
/* Check if scattered ray spawns a caustic photon; |
64 |
< |
* !!! NOTE this has to set bit 0 to properly handle caustic contrib |
65 |
< |
* !!! photons, so the explicit test against zero *IS* required! */ |
64 |
> |
* !!! NOTE this returns a single bit as boolean value (0|1), rather |
65 |
> |
* !!! than the original short int, hence the explicit test against zero. |
66 |
> |
* !!! This allows the macro the be used in a conditional statement |
67 |
> |
* !!! and when setting a photon's caustic flag in newPhoton(). */ |
68 |
|
#define PMAP_CAUSTICRAY(r) (((r) -> rtype & SPECULAR) != 0) |
69 |
|
|
70 |
|
|