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

Comparing ray/src/rt/pmapdump.c (file contents):
Revision 2.14 by rschregle, Tue Jan 22 18:28:23 2019 UTC vs.
Revision 2.15 by rschregle, Wed Aug 14 18:02:11 2019 UTC

# Line 305 | Line 305 | int main (int argc, char** argv)
305           for (j = 0; j < 4; j++)
306              p.flux [j] = getint(1, pmapFile);
307     #endif
308 +  
309 +        
310  
311           /* Skip primary ray index */
312           getint(sizeof(p.primary), pmapFile);
# Line 315 | Line 317 | int main (int argc, char** argv)
317  
318           /* Dump photon probabilistically acc. to target sphere count */
319           if (frandom() <= dumpRatio) {
320 <            if (fluxCol)
320 >            if (fluxCol) {
321                 /* Get photon flux */
322                 getPhotonFlux(&p, col);
323 +               /* Scale by dumpRatio for energy conservation */
324 +               scalecolor(col, 1.0 / dumpRatio);
325 +            }
326              
327              if (!points) {
328                 if (fluxCol) {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines