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

Comparing ray/src/rt/pmapcontrib.c (file contents):
Revision 2.14 by rschregle, Mon Aug 14 21:12:10 2017 UTC vs.
Revision 2.15 by rschregle, Thu Feb 8 19:55:02 2018 UTC

# Line 25 | Line 25 | static const char RCSid[] = "$Id$";
25   #include "otypes.h"
26   #if NIX
27     #include <sys/mman.h>
28 <   #include <sys/wait.h>
28 >   #include <sys/wait.h>  
29   #endif
30  
31  
# Line 60 | Line 60 | static PhotonPrimaryIdx newPhotonPrimary (PhotonMap *p
60      
61     if (primRay) {
62        FVECT dvec;
63 <      
63 >
64 > #ifdef PMAP_PRIMARYDIR            
65        /* Reverse incident direction to point to light source */
66        dvec [0] = -primRay -> rdir [0];
67        dvec [1] = -primRay -> rdir [1];
68        dvec [2] = -primRay -> rdir [2];
69        pmap -> lastPrimary.dir = encodedir(dvec);
70 + #endif      
71   #ifdef PMAP_PRIMARYPOS      
72        VCOPY(pmap -> lastPrimary.pos, primRay -> rop);
73   #endif      

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines