11 |
|
|
12 |
|
#include "ray.h" |
13 |
|
#include "paths.h" |
14 |
+ |
#include "pmapopt.h" |
15 |
|
|
16 |
|
|
17 |
< |
extern int |
17 |
> |
int |
18 |
|
getrenderopt( /* get next render option */ |
19 |
|
int ac, |
20 |
|
char *av[] |
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 |
220 |
|
} |
221 |
|
|
222 |
|
|
223 |
< |
extern void |
223 |
> |
void |
224 |
|
print_rdefaults(void) /* print default render values to stdout */ |
225 |
|
{ |
226 |
|
printf(do_irrad ? "-i+\t\t\t\t# irradiance calculation on\n" : |
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 |
|
} |