379 |
|
if (localhit(&sr, &thescene) && |
380 |
|
sr.ro != source[cntord[sn].sno].so) { |
381 |
|
/* check for transmission */ |
382 |
< |
rayshade(&sr, sr.ro->omod); |
382 |
> |
if (sr.clipset != NULL && inset(sr.clipset, sr.ro->omod)) |
383 |
> |
raytrans(&sr); |
384 |
> |
else |
385 |
> |
rayshade(&sr, sr.ro->omod); |
386 |
|
if (bright(sr.rcol) <= FTINY) |
387 |
|
continue; /* missed! */ |
388 |
|
(*f)(srccnt[cntord[sn].sno].val, p, |
397 |
|
} |
398 |
|
/* weighted hit rate */ |
399 |
|
hwt = hit2 / test2; |
400 |
< |
#ifdef DEBUG |
400 |
> |
#ifdef notdef |
401 |
|
sprintf(errmsg, "%d tested, %d untested, %f hit rate\n", |
402 |
|
sn, ncnts-sn, hwt); |
403 |
|
eputs(errmsg); |