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

Comparing ray/src/rt/pmap.h (file contents):
Revision 2.2 by greg, Tue Apr 21 19:16:51 2015 UTC vs.
Revision 2.5 by greg, Tue Aug 18 18:45:55 2015 UTC

# Line 1 | Line 1
1 + /* RCSid $Id$ */
2   /*
3     ==================================================================
4     Photon map main header
5  
6     Roland Schregle (roland.schregle@{hslu.ch, gmail.com})
7     (c) Fraunhofer Institute for Solar Energy Systems,
8 <       Lucerne University of Applied Sciences & Arts  
8 >   (c) Lucerne University of Applied Sciences and Arts,
9 >   supported by the Swiss National Science Foundation (SNSF, #147053)
10     ==================================================================
11    
12     $Id$
# Line 33 | Line 35
35  
36     /* Macros to test for enabled photon maps */
37     #define photonMapping         (globalPmap || preCompPmap || \
38 <                                  causticPmap ||contribPmap)
39 <   #define causticPhotonMapping  (causticPmap)
40 <   #define directPhotonMapping   (directPmap)
41 <   #define volumePhotonMapping   (volumePmap)
38 >                                  causticPmap || contribPmap)
39 >   #define causticPhotonMapping  (causticPmap != NULL)
40 >   #define directPhotonMapping   (directPmap != NULL)
41 >   #define volumePhotonMapping   (volumePmap != NULL)
42     #define contribPhotonMapping  (contribPmap && contribPmap -> srcContrib)
43    
44    

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines