| 45 |
|
int hresolu = 0; /* horizontal (scan) size */ |
| 46 |
|
int vresolu = 0; /* vertical resolution */ |
| 47 |
|
|
| 48 |
< |
int castonly = 0; /* only doing ray-casting? */ |
| 48 |
> |
extern int castonly; /* only doing ray-casting? */ |
| 49 |
|
|
| 50 |
|
int imm_irrad = 0; /* compute immediate irradiance? */ |
| 51 |
|
int lim_dist = 0; /* limit distance? */ |
| 339 |
|
marksources(); /* find and mark sources */ |
| 340 |
|
|
| 341 |
|
setambient(); /* initialize ambient calculation */ |
| 342 |
< |
} |
| 342 |
> |
} else |
| 343 |
> |
distantsources(); /* else mark only distant sources */ |
| 344 |
|
#ifdef PERSIST |
| 345 |
|
if (persist) { |
| 346 |
|
fflush(stdout); |