| 11 |
|
|
| 12 |
|
#include "ray.h" |
| 13 |
|
#include "view.h" |
| 14 |
+ |
#include "otypes.h" |
| 15 |
|
#include "source.h" |
| 16 |
|
|
| 17 |
|
|
| 374 |
|
} |
| 375 |
|
/* loop through all sources */ |
| 376 |
|
for (i = nsources; i--; ) { |
| 377 |
+ |
/* skip illum's */ |
| 378 |
+ |
if (findmaterial(source[i].so)->otype == MAT_ILLUM) |
| 379 |
+ |
continue; |
| 380 |
|
/* compute image polygon for source */ |
| 381 |
|
if (!(nsv = sourcepoly(i, spoly))) |
| 382 |
|
continue; |
| 448 |
|
if (source[sp->sn].sflags & SSPOT && |
| 449 |
|
spotout(&sr, source[sp->sn].sl.s)) |
| 450 |
|
continue; /* outside spot */ |
| 451 |
< |
rayorigin(&sr, NULL, PRIMARY, 1.0); |
| 451 |
> |
rayorigin(&sr, NULL, SHADOW, 1.0); |
| 452 |
> |
sr.rsrc = sp->sn; |
| 453 |
|
rayvalue(&sr); /* compute value */ |
| 454 |
|
if (bright(sr.rcol) <= FTINY) |
| 455 |
|
continue; /* missed/blocked */ |