383 |
|
*/ |
384 |
|
|
385 |
|
#define distglow(m, r) (m->otype==MAT_GLOW && \ |
386 |
+ |
m->oargs.farg[3] >= -FTINY && \ |
387 |
|
r->rot > m->oargs.farg[3]) |
388 |
|
|
389 |
|
/* badcomponent * |
419 |
|
|
420 |
|
/* srcignore * |
421 |
|
* |
422 |
< |
* The -di flag renders light sources invisible, and here is the test. |
422 |
> |
* The -dv flag is normally on for sources to be visible. |
423 |
|
*/ |
424 |
|
|
425 |
< |
#define srcignore(m, r) (directinvis && !(r->crtype&SHADOW) && \ |
425 |
> |
#define srcignore(m, r) (!directvis && !(r->crtype&SHADOW) && \ |
426 |
|
!distglow(m, r)) |
427 |
|
|
428 |
|
|