| 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 : |
| 409 |
|
rayvalue(&sr); |
| 410 |
|
multcolor(sr.rcol, sr.rcoef); |
| 411 |
|
copycolor(scp->val, sr.rcol); |
| 412 |
< |
cntord[sn].brt = intens(sr.rcol); |
| 412 |
> |
cntord[sn].brt = bright(sr.rcol); |
| 413 |
|
} |
| 414 |
|
/* sort contributions */ |
| 415 |
|
qsort(cntord, sn, sizeof(CNTPTR), cntcmp); |