28 |
|
double exposure = 1.0; /* exposure for scene */ |
29 |
|
|
30 |
|
double dstrsrc = 0.0; /* square source distribution */ |
31 |
+ |
double shadthresh = .1; /* shadow threshold */ |
32 |
+ |
double shadcert = .25; /* shadow certainty */ |
33 |
|
|
34 |
|
int maxdepth = 4; /* maximum recursion depth */ |
35 |
|
double minweight = 1e-2; /* minimum ray weight */ |
36 |
|
|
37 |
|
COLOR ambval = BLKCOLOR; /* ambient value */ |
38 |
|
double ambacc = 0.2; /* ambient accuracy */ |
39 |
< |
int ambres = 64; /* ambient resolution */ |
39 |
> |
int ambres = 8; /* ambient resolution */ |
40 |
|
int ambdiv = 32; /* ambient divisions */ |
41 |
|
int ambssamp = 0; /* ambient super-samples */ |
42 |
|
int ambounce = 0; /* ambient bounces */ |
68 |
|
devopen(dname) /* open device driver */ |
69 |
|
char *dname; |
70 |
|
{ |
71 |
< |
extern char *progname; |
71 |
> |
extern char *progname, *octname; |
72 |
|
char *devargv[3]; |
73 |
|
register int i; |
74 |
+ |
|
75 |
+ |
devargv[0] = dname; |
76 |
+ |
devargv[1] = octname!=NULL ? octname : progname; |
77 |
+ |
devargv[2] = NULL; |
78 |
|
/* check device table */ |
79 |
|
for (i = 0; devtable[i].name; i++) |
80 |
|
if (!strcmp(dname, devtable[i].name)) |
81 |
< |
if ((dev = (*devtable[i].init)(progname)) == NULL) { |
81 |
> |
if ((dev = (*devtable[i].init)(devargv[1])) == NULL) { |
82 |
|
sprintf(errmsg, "cannot initialize %s", dname); |
83 |
|
error(USER, errmsg); |
84 |
|
} else |
85 |
|
return; |
86 |
|
/* not there, try exec */ |
81 |
– |
devargv[0] = dname; |
82 |
– |
devargv[1] = progname; |
83 |
– |
devargv[2] = NULL; |
87 |
|
if ((dev = comm_init(devargv)) == NULL) { |
88 |
|
sprintf(errmsg, "cannot start device \"%s\"", dname); |
89 |
|
error(USER, errmsg); |