215 |
|
} |
216 |
|
if (dstrsrc > FTINY) { |
217 |
|
/* distribute source direction */ |
218 |
< |
for (i = 0; i < 3; i++) |
219 |
< |
vd[i] = dstrsrc * source[sn].ss * (1.0 - 2.0*frandom()); |
220 |
< |
|
218 |
> |
dimlist[ndims++] = sn; |
219 |
> |
for (i = 0; i < 3; i++) { |
220 |
> |
dimlist[ndims] = i + 8831; |
221 |
> |
vd[i] = dstrsrc * source[sn].ss * |
222 |
> |
(1.0 - 2.0*urand(ilhash(dimlist,ndims+1)+samplendx)); |
223 |
> |
} |
224 |
> |
ndims--; |
225 |
|
if (norm != NULL) { /* project offset */ |
226 |
|
d = DOT(vd, norm); |
227 |
|
for (i = 0; i < 3; i++) |
473 |
|
m->oargs.farg[2]); |
474 |
|
/* modify value */ |
475 |
|
multcolor(r->rcol, r->pcol); |
472 |
– |
/* assign distance */ |
473 |
– |
r->rt = r->rot; |
476 |
|
} |
477 |
|
} |