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

Comparing ray/src/rt/renderopts.c (file contents):
Revision 2.15 by greg, Tue Jul 8 18:25:00 2014 UTC vs.
Revision 2.16 by greg, Tue Feb 24 19:39:27 2015 UTC

# Line 11 | Line 11 | static const char      RCSid[] = "$Id$";
11  
12   #include  "ray.h"
13   #include  "paths.h"
14 + #include  "pmapopt.h"
15  
16  
17   int
# Line 208 | Line 209 | getrenderopt(          /* get next render option */
209                  }
210                  break;
211          }
212 <        return(-1);             /* unknown option */
212 >        
213 >        /* PMAP: Parse photon mapping options */
214 >        return(getPmapRenderOpt(ac, av));
215 >        
216 > /*      return(-1); */          /* unknown option */
217  
218   #undef  check
219   #undef  bool
# Line 253 | Line 258 | print_rdefaults(void)          /* print default render values
258          printf("-lr %-9d\t\t\t# limit reflection%s\n", maxdepth,
259                          maxdepth<=0 ? " (Russian roulette)" : "");
260          printf("-lw %.2e\t\t\t# limit weight\n", minweight);
261 +        
262 +        /* PMAP: output photon map defaults */
263 +        printPmapDefaults();
264   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines