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.19 by greg, Sat May 16 08:37:06 1992 UTC vs.
Revision 2.20 by greg, Tue May 19 17:09:03 1992 UTC

# Line 369 | Line 369 | register NORMDAT  *np;
369                  if (rv[1] <= FTINY)
370                          d = 1.0;
371                  else
372 <                        d = sqrt( np->alpha2/4.0 * -log(rv[1]) );
372 >                        d = sqrt( -log(rv[1]) * np->alpha2 );
373                  for (i = 0; i < 3; i++)
374                          sr.rdir[i] = np->prdir[i] + d*(cosp*u[i] + sinp*v[i]);
375                  if (DOT(sr.rdir, r->ron) < -FTINY)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines