# | Line 295 | Line 295 | int | |
---|---|---|
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 |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |