42 |
|
{75., 12}, |
43 |
|
{90., 0} } |
44 |
|
}, { |
45 |
< |
"LBNL/Klems Half", 73, |
45 |
> |
"LBNL/Klems Half", 77, |
46 |
|
{ {0., 1}, |
47 |
|
{6.5, 8}, |
48 |
|
{19.5, 12}, |
49 |
|
{32.5, 16}, |
50 |
< |
{46.5, 20}, |
51 |
< |
{61.5, 12}, |
52 |
< |
{76.5, 4}, |
50 |
> |
{45.5, 20}, |
51 |
> |
{58.5, 12}, |
52 |
> |
{71.5, 8}, |
53 |
|
{90., 0} } |
54 |
|
}, { |
55 |
|
"LBNL/Klems Quarter", 41, |
56 |
|
{ {0., 1}, |
57 |
|
{9., 8}, |
58 |
|
{27., 12}, |
59 |
< |
{46., 12}, |
60 |
< |
{66., 8}, |
59 |
> |
{45., 12}, |
60 |
> |
{63., 8}, |
61 |
|
{90., 0} } |
62 |
|
} |
63 |
|
}; |
295 |
|
mBSDF_color(float coef[], const SDMat *dp, int i, int o) |
296 |
|
{ |
297 |
|
C_COLOR cxy; |
298 |
+ |
double d; |
299 |
|
|
300 |
|
coef[0] = mBSDF_value(dp, o, i); |
301 |
+ |
/* position-specific perturbation */ |
302 |
+ |
d = 2*dp->ninc/(i + .22545) + 4*dp->nout/(o + .70281); |
303 |
+ |
d -= (int)d; |
304 |
+ |
coef[0] *= 1. + 6e-4*(d - .5); |
305 |
|
if (dp->chroma == NULL) |
306 |
|
return 1; /* grayscale */ |
307 |
|
|