101 |
|
static putf_t puta, putd, putf; |
102 |
|
|
103 |
|
typedef void oputf_t(RAY *r); |
104 |
< |
static oputf_t oputo, oputd, oputv, oputl, oputL, oputc, oputp, |
104 |
> |
static oputf_t oputo, oputd, oputv, oputV, oputl, oputL, oputc, oputp, |
105 |
|
oputn, oputN, oputs, oputw, oputW, oputm, oputM, oputtilde; |
106 |
|
|
107 |
|
static void setoutput(char *vs); |
265 |
|
*table++ = oputv; |
266 |
|
castonly = 0; |
267 |
|
break; |
268 |
+ |
case 'V': /* contribution */ |
269 |
+ |
*table++ = oputV; |
270 |
+ |
if (ambounce > 0 && (ambacc > FTINY || ambssamp > 0)) |
271 |
+ |
error(WARNING, |
272 |
+ |
"-otV accuracy depends on -aa 0 -as 0"); |
273 |
+ |
break; |
274 |
|
case 'l': /* effective distance */ |
275 |
|
*table++ = oputl; |
276 |
|
castonly = 0; |
538 |
|
|
539 |
|
|
540 |
|
static void |
541 |
+ |
oputV( /* print value contribution */ |
542 |
+ |
RAY *r |
543 |
+ |
) |
544 |
+ |
{ |
545 |
+ |
double contr[3]; |
546 |
+ |
|
547 |
+ |
raycontrib(contr, r, PRIMARY); |
548 |
+ |
multcolor(contr, r->rcol); |
549 |
+ |
(*putreal)(contr[RED]); |
550 |
+ |
(*putreal)(contr[GRN]); |
551 |
+ |
(*putreal)(contr[BLU]); |
552 |
+ |
} |
553 |
+ |
|
554 |
+ |
|
555 |
+ |
static void |
556 |
|
oputl( /* print effective distance */ |
557 |
|
RAY *r |
558 |
|
) |
657 |
|
|
658 |
|
|
659 |
|
static void |
660 |
< |
oputW( /* print contribution */ |
660 |
> |
oputW( /* print coefficient */ |
661 |
|
RAY *r |
662 |
|
) |
663 |
|
{ |