13 |
|
|
14 |
|
|
15 |
|
|
16 |
< |
#include <stdlib.h> |
16 |
> |
#include "ray.h" |
17 |
|
#include "pmapparm.h" |
18 |
– |
#include "rtio.h" |
19 |
– |
#include "rterror.h" |
18 |
|
|
19 |
|
|
20 |
|
|
33 |
|
case 'a': |
34 |
|
switch (av [0][2]) { |
35 |
|
case 'p': /* photon map */ |
36 |
+ |
/* Asking for photon map, ergo ambounce != 0 */ |
37 |
+ |
ambounce += (ambounce == 0); |
38 |
|
if (!check(3, "s")) { |
39 |
|
/* File -> assume bwidth = 1 or precomputed pmap */ |
40 |
|
if (++t >= NUM_PMAP_TYPES) |
90 |
|
void printPmapDefaults () |
91 |
|
/* Print defaults for photon map render options */ |
92 |
|
{ |
93 |
– |
puts("-ap file [bwidth1 [bwidth2]]\t# photon map"); |
93 |
|
printf("-am %.1f\t\t\t# max photon search radius coeff\n", maxDistCoeff); |
94 |
|
} |