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

Comparing ray/src/cv/bsdfrbf.c (file contents):
Revision 2.25 by greg, Sun Mar 30 00:19:09 2014 UTC vs.
Revision 2.26 by greg, Fri Aug 22 05:38:44 2014 UTC

# Line 73 | Line 73 | add_bsdf_data(double theta_out, double phi_out, double
73          ovec[2] = sqrt(1. - ovec[2]*ovec[2]);
74  
75          if (!isDSF)
76 <                val *= ovec[2];         /* convert from BSDF to DSF */
76 >                val *= COSF(ovec[2]);   /* convert from BSDF to DSF */
77  
78                                          /* update BSDF histogram */
79          if (val < BSDF2BIG*ovec[2] && val > BSDF2SML*ovec[2])

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines