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.3 by rschregle, Fri May 8 13:20:22 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
# Line 34 | 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