| 115 |
|
extern double specthresh; /* specular sampling threshold */ |
| 116 |
|
extern double specjitter; /* specular sampling jitter */ |
| 117 |
|
|
| 118 |
+ |
extern int backvis; /* back face visibility */ |
| 119 |
+ |
|
| 120 |
|
extern int maxdepth; /* maximum recursion depth */ |
| 121 |
|
extern double minweight; /* minimum ray weight */ |
| 122 |
|
|
| 218 |
|
} |
| 219 |
|
break; |
| 220 |
|
#endif |
| 221 |
+ |
case 'b': /* back face vis. */ |
| 222 |
+ |
if (argv[i][2] == 'v') { |
| 223 |
+ |
bool(3,backvis); |
| 224 |
+ |
break; |
| 225 |
+ |
} |
| 226 |
+ |
#if RVIEW |
| 227 |
+ |
bool(2,greyscale); |
| 228 |
+ |
break; |
| 229 |
+ |
#else |
| 230 |
+ |
goto badopt; |
| 231 |
+ |
#endif |
| 232 |
|
case 'd': /* direct */ |
| 233 |
|
switch (argv[i][2]) { |
| 234 |
|
case 't': /* threshold */ |
| 544 |
|
break; |
| 545 |
|
#endif |
| 546 |
|
#if RVIEW |
| 534 |
– |
case 'b': /* black and white */ |
| 535 |
– |
bool(2,greyscale); |
| 536 |
– |
break; |
| 547 |
|
case 'o': /* output device */ |
| 548 |
|
check(2,"s"); |
| 549 |
|
devname = argv[++i]; |
| 849 |
|
printf("-ps %-9d\t\t\t# pixel sample\n", psample); |
| 850 |
|
printf("-pt %f\t\t\t# pixel threshold\n", maxdiff); |
| 851 |
|
#endif |
| 852 |
+ |
printf(backvis ? "-bv+\t\t\t\t# back face visibility on\n" : |
| 853 |
+ |
"-bv-\t\t\t\t# back face visibility off\n"); |
| 854 |
|
printf("-dt %f\t\t\t# direct threshold\n", shadthresh); |
| 855 |
|
printf("-dc %f\t\t\t# direct certainty\n", shadcert); |
| 856 |
|
printf("-dj %f\t\t\t# direct jitter\n", dstrsrc); |