31 |
|
static const char klems_quarter[] = "LBNL/Klems Quarter"; |
32 |
|
static const char *kbasis = klems_full; |
33 |
|
/* number of BSDF samples per patch */ |
34 |
< |
static int npsamps = 256; |
34 |
> |
static int npsamps = 1024; |
35 |
|
/* limit on number of RBF lobes */ |
36 |
|
static int lobe_lim = 15000; |
37 |
|
/* progress bar length */ |
602 |
|
add_wbsdf("-f", 1); |
603 |
|
add_wbsdf(argv[i], 1); |
604 |
|
} else { |
605 |
< |
fcompile(argv[i]); |
605 |
> |
char *fpath = getpath(argv[i], |
606 |
> |
getrlibpath(), 0); |
607 |
> |
if (fpath == NULL) { |
608 |
> |
fprintf(stderr, |
609 |
> |
"%s: cannot find file '%s'\n", |
610 |
> |
argv[0], argv[i]); |
611 |
> |
return(1); |
612 |
> |
} |
613 |
> |
fcompile(fpath); |
614 |
|
single_plane_incident = 0; |
615 |
|
} |
616 |
|
} else |