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.13 by rschregle, Mon Feb 4 18:20:27 2019 UTC

# Line 59 | Line 59
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  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines