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

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

# Line 134 | Line 134 | dirnorm(               /* compute source contribution */
134                  dtmp = np->alpha2;
135                                                  /* + source if flat */
136                  if (np->specfl & SP_FLAT)
137 <                        dtmp += omega * (0.25/PI);
137 >                        dtmp += (1. - dstrsrc) * omega * (0.25/PI);
138                                                  /* half vector */
139                  VSUB(vtmp, ldir, np->rp->rdir);
140                  d2 = DOT(vtmp, np->pnorm);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines