1 |
< |
/* Copyright (c) 1992 Regents of the University of California */ |
1 |
> |
/* Copyright (c) 1995 Regents of the University of California */ |
2 |
|
|
3 |
|
#ifndef lint |
4 |
|
static char SCCSid[] = "$SunId$ LBL"; |
38 |
|
int directvis = 1; /* sources visible? */ |
39 |
|
double srcsizerat = 0.; /* maximum ratio source size/dist. */ |
40 |
|
|
41 |
+ |
COLOR cextinction = BLKCOLOR; /* global extinction coefficient */ |
42 |
+ |
double salbedo = 0.; /* global scattering albedo */ |
43 |
+ |
double seccg = 0.; /* global scattering eccentricity */ |
44 |
+ |
double ssampdist = 0.; /* scatter sampling distance */ |
45 |
+ |
|
46 |
|
double specthresh = .3; /* specular sampling threshold */ |
47 |
|
double specjitter = 1.; /* specular sampling jitter */ |
48 |
|
|
49 |
+ |
int backvis = 1; /* back face visibility */ |
50 |
+ |
|
51 |
|
int maxdepth = 4; /* maximum recursion depth */ |
52 |
|
double minweight = 1e-2; /* minimum ray weight */ |
53 |
|
|
233 |
|
getexposure(args); |
234 |
|
break; |
235 |
|
case 's': /* set a parameter */ |
236 |
< |
if (badcom("set")) |
236 |
> |
if (badcom("set")) { |
237 |
> |
#ifdef SIGTSTP |
238 |
> |
if (!badcom("stop")) |
239 |
> |
goto dostop; |
240 |
> |
#endif |
241 |
|
goto commerr; |
242 |
+ |
} |
243 |
|
setparam(args); |
244 |
|
break; |
245 |
|
case 'n': /* new picture */ |
273 |
|
break; |
274 |
|
case 'r': /* rotate/repaint */ |
275 |
|
if (badcom("rotate")) { |
276 |
< |
if (badcom("repaint")) |
277 |
< |
goto commerr; |
276 |
> |
if (badcom("repaint")) { |
277 |
> |
if (badcom("redraw")) |
278 |
> |
goto commerr; |
279 |
> |
redraw(); |
280 |
> |
break; |
281 |
> |
} |
282 |
|
getrepaint(args); |
283 |
|
break; |
284 |
|
} |
285 |
|
getrotate(args); |
286 |
|
break; |
287 |
|
case 'p': /* pivot view */ |
288 |
< |
if (badcom("pivot")) |
289 |
< |
goto commerr; |
288 |
> |
if (badcom("pivot")) { |
289 |
> |
if (badcom("pause")) |
290 |
> |
goto commerr; |
291 |
> |
goto again; |
292 |
> |
} |
293 |
|
getpivot(args); |
294 |
|
break; |
295 |
|
case CTRL('R'): /* redraw */ |
307 |
|
case CTRL('C'): /* interrupt */ |
308 |
|
goto again; |
309 |
|
#ifdef SIGTSTP |
310 |
< |
case CTRL('Z'): /* stop */ |
310 |
> |
case CTRL('Z'):; /* stop */ |
311 |
> |
dostop: |
312 |
|
devclose(); |
313 |
|
kill(0, SIGTSTP); |
314 |
|
/* pc stops here */ |