| 420 |
|
) |
| 421 |
|
{ |
| 422 |
|
/* set up ray */ |
| 423 |
– |
rayorigin(&thisray, PRIMARY, NULL, NULL); |
| 423 |
|
if (imm_irrad) { |
| 424 |
|
VSUM(thisray.rorg, org, dir, 1.1e-4); |
| 425 |
|
thisray.rdir[0] = -dir[0]; |
| 426 |
|
thisray.rdir[1] = -dir[1]; |
| 427 |
|
thisray.rdir[2] = -dir[2]; |
| 428 |
|
thisray.rmax = 0.0; |
| 430 |
– |
thisray.revf = rayirrad; |
| 429 |
|
} else { |
| 430 |
|
VCOPY(thisray.rorg, org); |
| 431 |
|
VCOPY(thisray.rdir, dir); |
| 432 |
|
thisray.rmax = dmax; |
| 435 |
– |
if (castonly) |
| 436 |
– |
thisray.revf = raycast; |
| 433 |
|
} |
| 434 |
+ |
rayorigin(&thisray, PRIMARY, NULL, NULL); |
| 435 |
+ |
if (imm_irrad) |
| 436 |
+ |
thisray.revf = rayirrad; |
| 437 |
+ |
else if (castonly) |
| 438 |
+ |
thisray.revf = raycast; |
| 439 |
|
if (ray_pnprocs > 1) { /* multiprocessing FIFO? */ |
| 440 |
|
if (ray_fifo_in(&thisray) < 0) |
| 441 |
|
error(USER, "lost children"); |