5 |
|
|
6 |
|
Roland Schregle (roland.schregle@{hslu.ch, gmail.com}) |
7 |
|
(c) Fraunhofer Institute for Solar Energy Systems, |
8 |
+ |
supported by the German Research Foundation |
9 |
+ |
(DFG LU-204/10-2, "Fassadenintegrierte Regelsysteme FARESYS") |
10 |
|
(c) Lucerne University of Applied Sciences and Arts, |
11 |
< |
supported by the Swiss National Science Foundation (SNSF, #147053) |
11 |
> |
supported by the Swiss National Science Foundation |
12 |
> |
(SNSF #147053, "Daylight Redirecting Components") |
13 |
|
====================================================================== |
14 |
|
|
15 |
|
*/ |
62 |
|
causticPmap || contribPmap) && \ |
63 |
|
(r) -> crtype & (AMBIENT | SHADOW) && \ |
64 |
|
(r) -> rtype & (TRANS | REFRACTED)) |
65 |
< |
|
65 |
> |
|
66 |
|
/* Check if scattered ray spawns a caustic photon; |
67 |
< |
* !!! NOTE this has to set bit 0 to properly handle caustic contrib |
68 |
< |
* !!! photons, so the explicit test against zero *IS* required! */ |
67 |
> |
* !!! NOTE this returns a single bit as boolean value (0|1), rather |
68 |
> |
* !!! than the original short int, hence the explicit test against zero. |
69 |
> |
* !!! This allows the macro the be used in a conditional statement |
70 |
> |
* !!! and when setting a photon's caustic flag in newPhoton(). */ |
71 |
|
#define PMAP_CAUSTICRAY(r) (((r) -> rtype & SPECULAR) != 0) |
72 |
|
|
73 |
|
|