--- ray/src/rt/ambient.c 1989/05/30 20:06:09 1.5 +++ ray/src/rt/ambient.c 1989/09/05 09:46:17 1.7 @@ -203,7 +203,8 @@ double s; * Jittering final test reduces image artifacts. */ wt = sqrt(e1) + sqrt(e2); - if (wt > ambacc*(0.9 + 0.2*frandom())) + wt *= .9 + .2*frandom(); + if (wt > ambacc) continue; if (wt <= 1e-3) wt = 1e3;