--- ray/src/rt/aniso.c 1992/01/15 16:59:55 2.7 +++ ray/src/rt/aniso.c 1992/01/30 11:37:04 2.9 @@ -209,8 +209,7 @@ register RAY *r; /* check threshold */ if (specthresh > FTINY && ((specthresh >= 1.-FTINY || - specthresh + (.1 - .2*urand(8199+samplendx)) - > nd.rspec))) + specthresh + (.05 - .1*frandom()) > nd.rspec))) nd.specfl |= SP_RBLT; /* compute refl. direction */ for (i = 0; i < 3; i++) @@ -240,8 +239,7 @@ register RAY *r; if (specthresh > FTINY && ((specthresh >= 1.-FTINY || specthresh + - (.1 - .2*urand(7241+samplendx)) - > nd.tspec))) + (.05 - .1*frandom()) > nd.tspec))) nd.specfl |= SP_TBLT; if (r->crtype & SHADOW || DOT(r->pert,r->pert) <= FTINY*FTINY) {