| 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 : |
| 306 |
|
* If it's a glow or transparent illum, just remember it. |
| 307 |
|
*/ |
| 308 |
|
if (source[i].sflags & SSKIP) { |
| 309 |
< |
glowsrc = i; |
| 309 |
> |
if (glowsrc < 0) |
| 310 |
> |
glowsrc = i; |
| 311 |
|
continue; |
| 312 |
|
} |
| 313 |
|
if (transillum(source[i].so->omod)) { |
| 314 |
< |
transrc = i; |
| 314 |
> |
if (transrc < 0) |
| 315 |
> |
transrc = i; |
| 316 |
|
continue; |
| 317 |
|
} |
| 318 |
|
r->ro = source[i].so; /* otherwise, use first hit */ |
| 411 |
|
rayvalue(&sr); |
| 412 |
|
multcolor(sr.rcol, sr.rcoef); |
| 413 |
|
copycolor(scp->val, sr.rcol); |
| 414 |
< |
cntord[sn].brt = intens(sr.rcol); |
| 414 |
> |
cntord[sn].brt = bright(sr.rcol); |
| 415 |
|
} |
| 416 |
|
/* sort contributions */ |
| 417 |
|
qsort(cntord, sn, sizeof(CNTPTR), cntcmp); |