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.5 by greg, Tue May 26 13:21:07 2015 UTC vs.
Revision 2.9 by greg, Tue Sep 1 16:27:52 2015 UTC

# Line 1 | Line 1
1 + /* RCSid $Id$ */
2   /*
3     ==================================================================
4     Photon map support routines for scattering by materials.
# Line 8 | Line 9
9     supported by the Swiss National Science Foundation (SNSF, #147053)
10     ==================================================================
11    
11   $Id$
12   */
13  
14  
# Line 28 | Line 28
28                             accounted for by caustic photons in the global,
29                             contrib, or dedicated caustic photon map.
30     */
31 + /*
32 +   #define ambRayInPmap(r)    ((r) -> crtype & AMBIENT && \
33 +                               ((photonMapping && \
34 +                                 (ambounce < 0 || (r) -> rlvl > 1)) || \
35 +                                 causticPhotonMapping || contribPhotonMapping))
36 + */
37 +   #define ambRayInPmap(r)    0
38     #define shadowRayInPmap(r) ((r) -> crtype & SHADOW && \
39 <                                (ambounce < 0 || causticPhotonMapping))
39 >                                (ambounce < 0 || ((r) -> crtype & AMBIENT ? \
40 >                                        photonMapping : causticPhotonMapping)))
41    
42     /* Check if scattered ray spawns a caustic photon */
43     #define PMAP_CAUSTICRAY(r) ((r) -> rtype & SPECULAR)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines