47 |
|
int directinvis = 0; /* sources invisible? */ |
48 |
|
double srcsizerat = .25; /* maximum ratio source size/dist. */ |
49 |
|
|
50 |
+ |
double specthresh = .15; /* specular sampling threshold */ |
51 |
+ |
double specjitter = 1.; /* specular sampling jitter */ |
52 |
+ |
|
53 |
|
int maxdepth = 6; /* maximum recursion depth */ |
54 |
|
double minweight = 5e-3; /* minimum ray weight */ |
55 |
|
|
111 |
|
#else |
112 |
|
report() /* report progress */ |
113 |
|
{ |
111 |
– |
signal(SIGALRM, report); |
114 |
|
tlastrept = time((long *)0); |
115 |
|
sprintf(errmsg, "%ld rays, %4.2f%% done after %5.4f hours\n", |
116 |
|
nrays, pctdone, (tlastrept-tstart)/3600.0); |
117 |
|
eputs(errmsg); |
118 |
+ |
signal(SIGALRM, report); |
119 |
|
} |
120 |
|
#endif |
121 |
|
|
233 |
|
#endif |
234 |
|
} |
235 |
|
/* clean up */ |
236 |
+ |
signal(SIGALRM, SIG_IGN); |
237 |
|
if (zfd != -1) { |
238 |
|
if (write(zfd, (char *)zbar[0], hresolu*sizeof(float)) |
239 |
|
< hresolu*sizeof(float)) |