89 |
|
maxarad = thescene.cusize / 2.0; |
90 |
|
} else { |
91 |
|
minarad = thescene.cusize / ar; |
92 |
< |
maxarad = 16 * minarad; /* heuristic */ |
92 |
> |
maxarad = 64 * minarad; /* heuristic */ |
93 |
|
if (maxarad > thescene.cusize / 2.0) |
94 |
|
maxarad = thescene.cusize / 2.0; |
95 |
|
} |
279 |
|
* Jittering final test reduces image artifacts. |
280 |
|
*/ |
281 |
|
wt = sqrt(e1) + sqrt(e2); |
282 |
< |
wt *= .9 + .2*urand(9015+samplendx); |
283 |
< |
if (wt > ambacc) |
282 |
> |
if (wt > ambacc*(.9+.2*urand(9015+samplendx))) |
283 |
|
continue; |
284 |
|
if (wt <= 1e-3) |
285 |
|
wt = 1e3; |