47 |
|
|
48 |
|
int do_irrad = 0; /* compute irradiance? */ |
49 |
|
|
50 |
< |
int rand_samp = 0; /* pure Monte Carlo sampling? */ |
50 |
> |
int rand_samp = 1; /* pure Monte Carlo sampling? */ |
51 |
|
|
52 |
|
void (*trace)() = NULL; /* trace call */ |
53 |
|
|
54 |
< |
char *tralist[128]; /* list of modifers to trace (or no) */ |
54 |
> |
#ifndef MAXMODLIST |
55 |
> |
#define MAXMODLIST 1024 /* maximum modifiers we'll track */ |
56 |
> |
#endif |
57 |
> |
|
58 |
> |
char *tralist[MAXMODLIST]; /* list of modifers to trace (or no) */ |
59 |
|
int traincl = -1; /* include == 1, exclude == 0 */ |
60 |
|
#ifndef MAXTSET |
61 |
< |
#define MAXTSET 8192 /* maximum number in trace set */ |
61 |
> |
#define MAXTSET 8191 /* maximum number in trace set */ |
62 |
|
#endif |
63 |
|
OBJECT traset[MAXTSET+1]={0}; /* trace include/exclude set */ |
64 |
|
|
202 |
|
nextflush = hresolu; |
203 |
|
} |
204 |
|
} else { |
205 |
< |
samplendx = rand_samp ? random() : samplendx+1; |
205 |
> |
samplendx++; |
206 |
|
/* compute and print */ |
207 |
|
if (imm_irrad) |
208 |
|
irrad(orig, direc); |