| 72 |
|
hlist[1] = dp->t; |
| 73 |
|
hlist[2] = dp->p; |
| 74 |
|
hlist[3] = 0; |
| 75 |
< |
zd = sqrt((dp->t+urand(ilhash(hlist,4)+dp->n))/h->nt); |
| 75 |
> |
zd = sqrt((dp->t+urand(urind(ilhash(hlist,4),dp->n)))/h->nt); |
| 76 |
|
hlist[3] = 1; |
| 77 |
< |
phi = 2.0*PI * (dp->p+urand(ilhash(hlist,4)+dp->n))/h->np; |
| 77 |
> |
phi = 2.0*PI * (dp->p+urand(urind(ilhash(hlist,4),dp->n)))/h->np; |
| 78 |
|
xd = cos(phi) * zd; |
| 79 |
|
yd = sin(phi) * zd; |
| 80 |
|
zd = sqrt(1.0 - zd*zd); |
| 86 |
|
rayvalue(&ar); |
| 87 |
|
ndims--; |
| 88 |
|
addcolor(dp->v, ar.rcol); |
| 89 |
< |
if (ar.rt < FHUGE) |
| 89 |
> |
if (ar.rt > FTINY && ar.rt < FHUGE) |
| 90 |
|
dp->r += 1.0/ar.rt; |
| 91 |
|
/* (re)initialize error */ |
| 92 |
|
if (dp->n++) { |