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.7 by greg, Wed Sep 25 17:42:45 2013 UTC vs.
Revision 2.8 by greg, Wed Oct 2 20:38:26 2013 UTC

# Line 54 | Line 54 | add_bsdf_data(double theta_out, double phi_out, double
54          ovec[1] = sin((M_PI/180.)*phi_out) * ovec[2];
55          ovec[2] = sqrt(1. - ovec[2]*ovec[2]);
56  
57 <        if (!isDSF)
57 >        if (val <= 0)                   /* truncate to zero */
58 >                val = 0;
59 >        else if (!isDSF)
60                  val *= ovec[2];         /* convert from BSDF to DSF */
61  
62                                          /* update BSDF histogram */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines