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

Comparing ray/src/rt/m_bsdf.c (file contents):
Revision 2.43 by greg, Fri Dec 1 02:45:14 2017 UTC vs.
Revision 2.44 by greg, Sat Dec 2 16:13:04 2017 UTC

# Line 274 | Line 274 | direct_specular_OK(COLOR cval, FVECT ldir, double omeg
274                  if (tomega2 < .12*tomega)
275                          continue;       /* not safe to include */
276                  cvt_sdcolor(csmp, &sv);
277 <                                        /* weight average by Y */
278 <                scalecolor(csmp, sv.cieY);
277 >
278 >                if (sf < 2.5*tsr) {     /* weight by Y for small sources */
279 >                        scalecolor(csmp, sv.cieY);
280 >                        wtot += sv.cieY;
281 >                } else
282 >                        wtot += 1.;
283                  addcolor(cval, csmp);
280                wtot += sv.cieY;
284          }
285          if (wtot <= FTINY)              /* no valid specular samples? */
286                  return(0);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines