| 86 |
|
continue; |
| 87 |
|
/* find material */ |
| 88 |
|
m = findmaterial(objptr(o->omod)); |
| 89 |
< |
if (m == NULL || !islight(m->otype)) |
| 89 |
> |
if (m == NULL) |
| 90 |
> |
continue; |
| 91 |
> |
if (m->otype == MAT_CLIP) { |
| 92 |
> |
markclip(m); /* special case for antimatter */ |
| 93 |
> |
continue; |
| 94 |
> |
} |
| 95 |
> |
if (!islight(m->otype)) |
| 96 |
|
continue; /* not source modifier */ |
| 97 |
|
|
| 98 |
|
if (m->oargs.nfargs != (m->otype == MAT_GLOW ? 4 : |
| 463 |
|
raycont(&sr); |
| 464 |
|
if (trace != NULL) |
| 465 |
|
(*trace)(&sr); /* trace execution */ |
| 460 |
– |
rayparticipate(&sr); |
| 466 |
|
if (bright(sr.rcol) <= FTINY) { |
| 467 |
|
#if SHADCACHE |
| 468 |
|
if ((scp <= srccnt || scp[-1].sno != scp->sno) |
| 472 |
|
#endif |
| 473 |
|
continue; /* missed! */ |
| 474 |
|
} |
| 475 |
+ |
rayparticipate(&sr); |
| 476 |
|
multcolor(sr.rcol, sr.rcoef); |
| 477 |
|
copycolor(scp->val, sr.rcol); |
| 478 |
|
} else if (trace != NULL && |