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) */ |
55 |
|
int traincl = -1; /* include == 1, exclude == 0 */ |
56 |
|
#ifndef MAXTSET |
57 |
< |
#define MAXTSET 1024 /* maximum number in trace set */ |
57 |
> |
#define MAXTSET 8192 /* maximum number in trace set */ |
58 |
|
#endif |
59 |
|
OBJECT traset[MAXTSET+1]={0}; /* trace include/exclude set */ |
60 |
|
|
198 |
|
nextflush = hresolu; |
199 |
|
} |
200 |
|
} else { |
201 |
< |
samplendx = rand_samp ? random() : samplendx+1; |
201 |
> |
samplendx++; |
202 |
|
/* compute and print */ |
203 |
|
if (imm_irrad) |
204 |
|
irrad(orig, direc); |