| 85 |
|
extern double dstrsrc; /* square source distribution */ |
| 86 |
|
extern double shadthresh; /* shadow threshold */ |
| 87 |
|
extern double shadcert; /* shadow testing certainty */ |
| 88 |
+ |
extern int directrelay; /* number of source relays */ |
| 89 |
|
|
| 90 |
|
extern int maxdepth; /* maximum recursion depth */ |
| 91 |
|
extern double minweight; /* minimum ray weight */ |
| 184 |
|
check(3,1); |
| 185 |
|
dstrsrc = atof(argv[++i]); |
| 186 |
|
break; |
| 187 |
+ |
case 'r': |
| 188 |
+ |
check(3,1); |
| 189 |
+ |
directrelay = atoi(argv[++i]); |
| 190 |
+ |
break; |
| 191 |
|
default: |
| 192 |
|
goto badopt; |
| 193 |
|
} |
| 586 |
|
printf("-dt %f\t\t\t# direct threshold\n", shadthresh); |
| 587 |
|
printf("-dc %f\t\t\t# direct certainty\n", shadcert); |
| 588 |
|
printf("-dj %f\t\t\t# direct jitter\n", dstrsrc); |
| 589 |
+ |
printf("-dr %-9d\t\t\t# direct relays\n", directrelay); |
| 590 |
|
printf("-av %f %f %f\t# ambient value\n", colval(ambval,RED), |
| 591 |
|
colval(ambval,GRN), colval(ambval, BLU)); |
| 592 |
|
printf("-ab %-9d\t\t\t# ambient bounces\n", ambounce); |