50 |
|
#endif |
51 |
|
#endif |
52 |
|
#ifndef SORT_INTVL |
53 |
< |
#define SORT_INTVL (SORT_THRESH<<4) |
53 |
> |
#define SORT_INTVL (SORT_THRESH<<1) |
54 |
|
#endif |
55 |
|
#ifndef MAX_SORT_INTVL |
56 |
< |
#define MAX_SORT_INTVL (SORT_INTVL<<8) |
56 |
> |
#define MAX_SORT_INTVL (SORT_INTVL<<6) |
57 |
|
#endif |
58 |
|
|
59 |
|
static COLOR avsum = BLKCOLOR; /* computed ambient value sum */ |
403 |
|
setbuf(ambfp, bmalloc(BUFSIZ+8)); |
404 |
|
if (creat) { /* new file */ |
405 |
|
newheader("RADIANCE", ambfp); |
406 |
< |
fprintf(ambfp, "%s -av %g %g %g -ab %d -aa %g ", |
406 |
> |
fprintf(ambfp, "%s -av %g %g %g -aw %d -ab %d -aa %g ", |
407 |
|
progname, colval(ambval,RED), |
408 |
|
colval(ambval,GRN), colval(ambval,BLU), |
409 |
< |
ambounce, ambacc); |
409 |
> |
ambvwt, ambounce, ambacc); |
410 |
|
fprintf(ambfp, "-ad %d -as %d -ar %d %s\n", |
411 |
|
ambdiv, ambssamp, ambres, |
412 |
|
octname==NULL ? "" : octname); |