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

Comparing ray/src/common/bsdf_t.c (file contents):
Revision 3.38 by greg, Sun Apr 5 06:02:43 2015 UTC vs.
Revision 3.39 by greg, Mon Apr 6 16:00:15 2015 UTC

# Line 1194 | Line 1194 | subtract_min_Y(SDNode *st)
1194          } else                          /* anisotropic covers entire tree */
1195                  vmin = SDgetTreMin(st);
1196  
1197 <        if (vmin <= FTINY)
1198 <                return .0;
1197 >        if (vmin <= .01/M_PI)
1198 >                return .0;              /* not worth bothering about */
1199  
1200          SDsubtractTreVal(st, vmin);
1201  
# Line 1317 | Line 1317 | subtract_min_RGB(C_COLOR *cs, SDNode *stc[])
1317          ymin = tt_RGB_coef[0]*my_min.rgb[0] +
1318                          tt_RGB_coef[1]*my_min.rgb[1] +
1319                                          tt_RGB_coef[2]*my_min.rgb[2];
1320 <        if (ymin <= 1e-5) {
1320 >        if (ymin <= .01/M_PI) {
1321                  *cs = c_dfcolor;
1322                  return .0;              /* not worth bothering about */
1323          }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines