387 |
|
extern int directinvis; |
388 |
|
extern double srcsizerat; |
389 |
|
extern int do_irrad; |
390 |
+ |
extern double specjitter; |
391 |
+ |
extern double specthresh; |
392 |
|
char buf[128]; |
393 |
|
|
394 |
|
if (s[0] == '\0') { |
395 |
|
(*dev->comout)( |
396 |
< |
"aa ab ad ar as av b dc di dj ds dt i lr lw sp st: "); |
396 |
> |
"aa ab ad ar as av b dc di dj ds dt i lr lw ps pt sj st: "); |
397 |
|
(*dev->comin)(buf, NULL); |
398 |
|
s = buf; |
399 |
|
} |
464 |
|
goto badparam; |
465 |
|
} |
466 |
|
break; |
467 |
< |
case 's': /* sample */ |
467 |
> |
case 'p': /* pixel */ |
468 |
|
switch (s[1]) { |
469 |
< |
case 'p': /* pixel */ |
470 |
< |
if (getparam(s+2, "sample pixel", 'i', &psample)) |
469 |
> |
case 's': /* sample */ |
470 |
> |
if (getparam(s+2, "pixel sample", 'i', &psample)) |
471 |
|
pdepth = 0; |
472 |
|
break; |
473 |
|
case 't': /* threshold */ |
474 |
< |
if (getparam(s+2, "sample threshold", 'r', &maxdiff)) |
474 |
> |
if (getparam(s+2, "pixel threshold", 'r', &maxdiff)) |
475 |
|
pdepth = 0; |
476 |
+ |
break; |
477 |
+ |
default: |
478 |
+ |
goto badparam; |
479 |
+ |
} |
480 |
+ |
break; |
481 |
+ |
case 's': /* specular */ |
482 |
+ |
switch (s[1]) { |
483 |
+ |
case 'j': /* jitter */ |
484 |
+ |
getparam(s+2, "specular jitter", 'r', &specjitter); |
485 |
+ |
break; |
486 |
+ |
case 't': /* threshold */ |
487 |
+ |
getparam(s+2, "specular threshold", 'r', &specthresh); |
488 |
|
break; |
489 |
|
default: |
490 |
|
goto badparam; |