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

Comparing ray/src/cv/bsdfrep.c (file contents):
Revision 2.26 by greg, Thu Aug 21 13:44:05 2014 UTC vs.
Revision 2.27 by greg, Fri Aug 22 05:38:44 2014 UTC

# Line 290 | Line 290 | eval_rbfrep(const RBFNODE *rp, const FVECT outvec)
290                  ovec_from_pos(odir, rbfp->gx, rbfp->gy);
291                  res += rbfp->peak * exp((DOT(odir,outvec) - 1.) / rad2);
292          }
293 <        res /= output_orient*outvec[2];
293 >        res /= COSF(outvec[2]);
294          if (res < bsdf_min)     /* never return less than bsdf_min */
295                  return(bsdf_min);
296          return(res);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines