| 1 |
+ |
#ifndef lint |
| 2 |
+ |
static const char RCSid[] = "$Id$"; |
| 3 |
+ |
#endif |
| 4 |
|
/* |
| 5 |
|
================================================================== |
| 6 |
|
Photon map support routines for emission from light sources |
| 751 |
|
photonOrigin [emap -> src -> so -> otype] ((EmissionMap*)emap); |
| 752 |
|
/* If we have a local glow source with a maximum radius, then |
| 753 |
|
restrict our photon to the specified distance (otherwise no limit) */ |
| 754 |
< |
if (mod -> otype == MAT_GLOW && emap -> src -> so -> otype != OBJ_SOURCE |
| 754 |
> |
if (mod -> otype == MAT_GLOW && !(emap -> src -> sflags & SDISTANT) |
| 755 |
|
&& mod -> oargs.farg[3] > FTINY) |
| 756 |
|
ray -> rmax = mod -> oargs.farg[3]; |
| 757 |
|
else |