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

Comparing ray/src/cv/bsdf2klems.c (file contents):
Revision 2.11 by greg, Sat Nov 9 05:47:49 2013 UTC vs.
Revision 2.12 by greg, Thu Nov 21 20:09:06 2013 UTC

# Line 333 | Line 333 | eval_rbf(void)
333                      else
334                          bo_getvec(vout, j+(n+frandom())/npsamps, abp);
335  
336 <                    sum += eval_rbfrep(rbf, vout) / vout[2];
336 >                    sum += eval_rbfrep(rbf, vout);
337                  }
338 <                bsdfarr[j*abp->nangles + i] = sum*output_orient/npsamps;
338 >                fo_getvec(vout, j+.5, abp);     /* use centered secant */
339 >                bsdfarr[j*abp->nangles + i] = sum / (npsamps*vout[2]);
340              }
341              if (rbf != NULL)
342                  free(rbf);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines