394 |
|
} |
395 |
|
/* weighted hit rate */ |
396 |
|
hwt = hit2 / test2; |
397 |
< |
#ifdef DEBUG |
397 |
> |
#ifdef notdef |
398 |
|
sprintf(errmsg, "%d tested, %d untested, %f hit rate\n", |
399 |
|
sn, ncnts-sn, hwt); |
400 |
|
eputs(errmsg); |
428 |
|
register OBJREC *m; |
429 |
|
register RAY *r; |
430 |
|
{ |
431 |
– |
/* check for behind */ |
432 |
– |
if (r->rod < 0.0) |
433 |
– |
return; |
431 |
|
/* check for over-counting */ |
432 |
|
if (wrongsource(m, r) || badambient(m, r)) |
433 |
|
return; |
441 |
|
|
442 |
|
/* otherwise treat as source */ |
443 |
|
} else { |
444 |
+ |
/* check for behind */ |
445 |
+ |
if (r->rod < 0.0) |
446 |
+ |
return; |
447 |
|
/* get distribution pattern */ |
448 |
|
raytexture(r, m->omod); |
449 |
|
/* get source color */ |