36 |
|
int psample = 4; /* pixel sample size */ |
37 |
|
double maxdiff = .05; /* max. difference for interpolation */ |
38 |
|
double dstrpix = 0.67; /* square pixel distribution */ |
39 |
– |
int psuper = 2; /* pixel super-sampling rate */ |
39 |
|
|
40 |
|
double dstrsrc = 0.0; /* square source distribution */ |
41 |
|
double shadthresh = .05; /* shadow threshold */ |
42 |
|
double shadcert = .5; /* shadow certainty */ |
43 |
+ |
int directrelay = 0; /* number of source relays */ |
44 |
|
|
45 |
|
int maxdepth = 6; /* maximum recursion depth */ |
46 |
|
double minweight = 5e-3; /* minimum ray weight */ |
65 |
|
|
66 |
|
extern long nrays; /* number of rays traced */ |
67 |
|
|
68 |
< |
#define MAXDIV 32 /* maximum sample size */ |
68 |
> |
#define MAXDIV 15 /* maximum sample size */ |
69 |
|
|
70 |
|
#define pixjitter() (.5+dstrpix*(.5-frandom())) |
71 |
|
|
127 |
|
/* check sampling */ |
128 |
|
if (psample < 1) |
129 |
|
psample = 1; |
130 |
< |
else if (psample > MAXDIV) |
130 |
> |
else if (psample > MAXDIV) { |
131 |
> |
sprintf(errmsg, "pixel sampling reduced from %d to %d", |
132 |
> |
psample, MAXDIV); |
133 |
> |
error(WARNING, errmsg); |
134 |
|
psample = MAXDIV; |
135 |
+ |
} |
136 |
|
/* allocate scanlines */ |
137 |
|
for (i = 0; i <= psample; i++) { |
138 |
|
scanbar[i] = (COLOR *)malloc(hresolu*sizeof(COLOR)); |