33 |
|
|
34 |
|
int do_irrad = 0; /* compute irradiance? */ |
35 |
|
|
36 |
+ |
int rand_samp = 0; /* pure Monte Carlo sampling? */ |
37 |
+ |
|
38 |
|
int psample = 8; /* pixel sample size */ |
39 |
|
double maxdiff = .15; /* max. sample difference */ |
40 |
|
|
64 |
|
char *ambfile = NULL; /* ambient file name */ |
65 |
|
COLOR ambval = BLKCOLOR; /* ambient value */ |
66 |
|
int ambvwt = 0; /* initial weight for ambient value */ |
67 |
< |
double ambacc = 0.2; /* ambient accuracy */ |
67 |
> |
double ambacc = 0.3; /* ambient accuracy */ |
68 |
|
int ambres = 32; /* ambient resolution */ |
69 |
< |
int ambdiv = 128; /* ambient divisions */ |
70 |
< |
int ambssamp = 32; /* ambient super-samples */ |
69 |
> |
int ambdiv = 256; /* ambient divisions */ |
70 |
> |
int ambssamp = 64; /* ambient super-samples */ |
71 |
|
int ambounce = 0; /* ambient bounces */ |
72 |
< |
char *amblist[128]; /* ambient include/exclude list */ |
72 |
> |
char *amblist[AMBLLEN]; /* ambient include/exclude list */ |
73 |
|
int ambincl = -1; /* include == 1, exclude == 0 */ |
74 |
|
|
75 |
|
int greyscale = 0; /* map colors to brightness? */ |
217 |
|
else *++args = '\0'; |
218 |
|
|
219 |
|
switch (inpbuf[0]) { |
220 |
< |
case 'f': /* new frame (or free mem.) */ |
220 |
> |
case 'f': /* new frame (|focus|free) */ |
221 |
|
if (badcom("frame")) { |
222 |
< |
if (badcom("free")) |
223 |
< |
goto commerr; |
224 |
< |
free_objmem(); |
222 |
> |
if (badcom("focus")) { |
223 |
> |
if (badcom("free")) |
224 |
> |
goto commerr; |
225 |
> |
free_objmem(); |
226 |
> |
break; |
227 |
> |
} |
228 |
> |
getfocus(args); |
229 |
|
break; |
230 |
|
} |
231 |
|
getframe(args); |