28 |
|
double dstrpix = 0.67; /* square pixel distribution */ |
29 |
|
|
30 |
|
double dstrsrc = 0.0; /* square source distribution */ |
31 |
< |
double shadthresh = .01; /* shadow threshold */ |
31 |
> |
double shadthresh = .05; /* shadow threshold */ |
32 |
> |
double shadcert = .5; /* shadow certainty */ |
33 |
|
|
34 |
|
int maxdepth = 6; /* maximum recursion depth */ |
35 |
|
double minweight = 5e-3; /* minimum ray weight */ |
36 |
|
|
37 |
|
COLOR ambval = BLKCOLOR; /* ambient value */ |
38 |
|
double ambacc = 0.2; /* ambient accuracy */ |
39 |
< |
int ambres = 128; /* ambient resolution */ |
39 |
> |
int ambres = 32; /* ambient resolution */ |
40 |
|
int ambdiv = 128; /* ambient divisions */ |
41 |
|
int ambssamp = 0; /* ambient super-samples */ |
42 |
|
int ambounce = 0; /* ambient bounces */ |
112 |
|
} |
113 |
|
|
114 |
|
/* write out boundaries */ |
115 |
< |
printf("-Y %d +X %d\n", ourview.vresolu, ourview.hresolu); |
115 |
> |
fputresolu(YMAJOR|YDECR, ourview.hresolu, ourview.vresolu, stdout); |
116 |
|
|
117 |
|
ypos = ourview.vresolu - salvage(oldfile); /* find top line */ |
118 |
|
fillscanline(scanbar[0], ypos, psample); /* top scan */ |
263 |
|
/* discard header */ |
264 |
|
getheader(fp, NULL); |
265 |
|
/* get picture size */ |
266 |
< |
if (fscanf(fp, "-Y %d +X %d\n", &y, &x) != 2) { |
266 |
> |
if (fgetresolu(&x, &y, fp) != (YMAJOR|YDECR)) { |
267 |
|
sprintf(errmsg, "bad recover file \"%s\"", oldfile); |
268 |
|
error(WARNING, errmsg); |
269 |
|
fclose(fp); |