8 |
|
#include <signal.h> |
9 |
|
#include <ctype.h> |
10 |
|
|
11 |
– |
#include "platform.h" |
11 |
|
#include "mkillum.h" |
13 |
– |
#include "random.h" |
12 |
|
|
13 |
|
/* default parameters */ |
14 |
|
#define SAMPDENS 48 /* points per projected steradian */ |
68 |
|
gargv = argv; |
69 |
|
progname = gargv[0]; |
70 |
|
/* set up rendering defaults */ |
71 |
< |
dstrsrc = 0.25; |
71 |
> |
dstrsrc = 0.5; |
72 |
|
directrelay = 3; |
73 |
|
directvis = 0; |
74 |
|
ambounce = 2; |
306 |
|
} |
307 |
|
if (!*++cp || isspace(*cp)) |
308 |
|
continue; |
309 |
< |
if (isintd(++cp, " \t\n\r")) { |
309 |
> |
if (isintd(cp, " \t\n\r")) { |
310 |
|
thisillum.sampdens = atoi(cp); |
311 |
|
} else { |
312 |
|
atos(buf, sizeof(buf), cp); |
383 |
|
break; |
384 |
|
case 'z': |
385 |
|
case 'Z': |
386 |
< |
thisillum.udir = negax ? UDxneg : UDxpos; |
386 |
> |
thisillum.udir = negax ? UDzneg : UDzpos; |
387 |
|
break; |
388 |
|
default: |
389 |
|
thisillum.udir = UDunknown; |
444 |
|
printf("l+\t\t\t\t# light type on\n"); |
445 |
|
else |
446 |
|
printf("l-\t\t\t\t# light type off\n"); |
447 |
< |
printf("d=%d\t\t\t\t# density of points\n", thisillum.sampdens); |
448 |
< |
printf("s=%d\t\t\t\t# samples per point\n", thisillum.nsamps); |
447 |
> |
printf("d=%d\t\t\t\t# density of directions\n", thisillum.sampdens); |
448 |
> |
printf("s=%d\t\t\t\t# samples per direction\n", thisillum.nsamps); |
449 |
|
printf("b=%f\t\t\t# minimum average brightness\n", thisillum.minbrt); |
450 |
|
switch (thisillum.udir) { |
451 |
|
case UDzneg: |