384 |
|
char *oldfile |
385 |
|
) |
386 |
|
{ |
387 |
+ |
const int srcdrawing = /* manually draw tiny light sources? */ |
388 |
+ |
(directvis && dblur <= FTINY && (mblur <= FTINY) | !lastview.type); |
389 |
|
COLOR *scanbar[MAXDIV+1]; /* scanline arrays of pixel values */ |
390 |
|
float *zbar[MAXDIV+1]; /* z values */ |
391 |
|
char *sampdens; /* previous sample density */ |
452 |
|
signal(SIGCONT, report); |
453 |
|
#endif |
454 |
|
ypos = vres-1 - i; /* initialize sampling */ |
455 |
< |
if (directvis) |
455 |
> |
if (srcdrawing) |
456 |
|
init_drawsources(psample); |
457 |
|
fillscanline(scanbar[0], zbar[0], sampdens, hres, ypos, hstep); |
458 |
|
/* compute scanlines */ |
473 |
|
hres, ypos, hstep); |
474 |
|
/* fill bar */ |
475 |
|
fillscanbar(scanbar, zbar, hres, ypos, ystep); |
476 |
< |
if (directvis) /* add bitty sources */ |
477 |
< |
drawsources(scanbar, zbar, 0, hres, ypos, ystep); |
476 |
> |
if (srcdrawing) /* add bitty sources */ |
477 |
> |
drawsources((COLORV **)scanbar, 3, zbar, 0, hres, ypos, ystep); |
478 |
|
/* write it out */ |
479 |
|
#ifdef SIGCONT |
480 |
|
signal(SIGCONT, SIG_IGN); /* don't interrupt writes */ |