ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/rt/pmapmat.h
(Generate patch)

Comparing ray/src/rt/pmapmat.h (file contents):
Revision 2.12 by rschregle, Tue Feb 23 12:42:41 2016 UTC vs.
Revision 2.14 by rschregle, Mon Feb 22 13:27:49 2021 UTC

# Line 5 | Line 5
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   */
# Line 59 | Line 62
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  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines