ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/common/bsdf_m.c
(Generate patch)

Comparing ray/src/common/bsdf_m.c (file contents):
Revision 3.44 by greg, Fri Dec 17 20:51:55 2021 UTC vs.
Revision 3.45 by greg, Tue Jan 25 01:34:20 2022 UTC

# 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  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines