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

Comparing ray/src/rt/m_wgmdf.c (file contents):
Revision 2.8 by greg, Thu Dec 19 23:25:28 2024 UTC vs.
Revision 2.9 by greg, Fri Dec 20 16:29:50 2024 UTC

# Line 452 | Line 452 | dirwgmdf(SCOLOR scval, void *uwp, FVECT ldir, double o
452                   */
453                                                  /* add source width if flat */
454                  if (wp->specfl & SP_FLAT)
455 <                        au2 = av2 = omega * (0.25/PI);
455 >                        au2 = av2 = (1. - dstrsrc) * omega * (0.25/PI);
456                  else
457                          au2 = av2 = 0.0;
458                  au2 += wp->rs.u_alpha*wp->rs.u_alpha;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines