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.34 by greg, Sun Aug 23 00:56:00 2015 UTC vs.
Revision 3.35 by greg, Thu Aug 27 04:33:31 2015 UTC

# Line 298 | Line 298 | mBSDF_color(float coef[], const SDMat *dp, int i, int
298          if (dp->chroma == NULL)
299                  return 1;       /* grayscale */
300  
301 <        c_decodeChroma(&cxy, dp->chroma[o*dp->ninc + i]);
301 >        c_decodeChroma(&cxy, mBSDF_chroma(dp,i,o));
302          c_toSharpRGB(&cxy, coef[0], coef);
303          coef[0] *= mtx_RGB_coef[0];
304          coef[1] *= mtx_RGB_coef[1];
# Line 622 | Line 622 | subtract_min(C_COLOR *cs, SDMat *sm)
622                                  coef[c] = (coef[c] - min_coef[c]) /
623                                                  mtx_RGB_coef[c];
624                          if (c_fromSharpRGB(coef, &cxy) > 1e-5)
625 <                                sm->chroma[o*sm->ninc + i] = c_encodeChroma(&cxy);
625 >                                mBSDF_chroma(sm,i,o) = c_encodeChroma(&cxy);
626                          mBSDF_value(sm,i,o) -= ymin;
627                  }
628                                          /* return colored minimum */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines