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

Comparing ray/src/rt/pmcontrib2.c (file contents):
Revision 2.4 by rschregle, Fri Feb 9 14:59:08 2018 UTC vs.
Revision 2.6 by greg, Sun Nov 19 00:43:00 2023 UTC

# Line 23 | Line 23 | static const char RCSid[] = "$Id$";
23   #include "pmapdiag.h"
24   #include "rcontrib.h"
25   #include "otypes.h"
26 + #include "otspecial.h"
27  
28  
28
29   static void setPmapContribParams (PhotonMap *pmap, LUTAB *srcContrib)
30   /* Set parameters for light source contributions */
31   {
# Line 108 | Line 108 | void photonContrib (PhotonMap *pmap, RAY *ray, COLOR i
108     unsigned                i;
109     PhotonSearchQueueNode   *sqn;
110     float                   r2, invArea;
111 <   RREAL                   rayCoeff [3];
111 >   SCOLOR                   rayCoeff;
112     Photon                  *photon;
113     static char             warnPos = 1, warnDir = 1;
114  
# Line 238 | Line 238 | void photonContrib (PhotonMap *pmap, RAY *ray, COLOR i
238                 flux [j] = ray -> rcol [j] ? flux [j] / ray -> rcol [j] : 0;
239           }
240                      
241 <         multcolor(flux, rayCoeff);
242 <         addcolor(srcContrib -> cbin [srcBin], flux);
241 >         multscolor(flux, rayCoeff);
242 >         saddcolor(mcbin(srcContrib,srcBin), flux);
243        }
244     }
245          

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines