| 12 |
|
#include <math.h> |
| 13 |
|
#include <ctype.h> |
| 14 |
|
#include "random.h" |
| 15 |
– |
#include "platform.h" |
| 16 |
– |
#include "paths.h" |
| 15 |
|
#include "rtio.h" |
| 16 |
|
#include "calcomp.h" |
| 17 |
|
#include "bsdfrep.h" |
| 20 |
– |
/* global argv[0] */ |
| 21 |
– |
char *progname; |
| 18 |
|
/* reciprocity averaging option */ |
| 19 |
|
static const char *recip = ""; |
| 20 |
|
/* percentage to cull (<0 to turn off) */ |
| 24 |
|
/* super-sampling threshold */ |
| 25 |
|
static double ssamp_thresh = 0.35; |
| 26 |
|
/* number of super-samples */ |
| 27 |
< |
static int nssamp = 256; |
| 27 |
> |
static int nssamp = 64; |
| 28 |
|
/* limit on number of RBF lobes */ |
| 29 |
|
static int lobe_lim = 15000; |
| 30 |
|
/* progress bar length */ |
| 742 |
|
int nsirs = 0; |
| 743 |
|
char buf[1024]; |
| 744 |
|
int i; |
| 745 |
< |
|
| 746 |
< |
progname = argv[0]; |
| 745 |
> |
/* set global progname */ |
| 746 |
> |
fixargv0(argv[0]); |
| 747 |
|
esupport |= E_VARIABLE|E_FUNCTION|E_RCONST; |
| 748 |
|
esupport &= ~(E_INCHAN|E_OUTCHAN); |
| 749 |
|
scompile("PI:3.14159265358979323846", NULL, 0); |