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

Comparing ray/src/rt/glass.c (file contents):
Revision 2.1 by greg, Tue Nov 12 17:09:32 1991 UTC vs.
Revision 2.2 by greg, Wed May 20 10:24:26 1992 UTC

# Line 95 | Line 95 | register RAY  *r;
95                  if (!(r->crtype & SHADOW) &&
96                                  DOT(r->pert,r->pert) > FTINY*FTINY) {
97                          for (i = 0; i < 3; i++)         /* perturb direction */
98 <                                p.rdir[i] = r->rdir[i] - r->pert[i]/rindex;
98 >                                p.rdir[i] = r->rdir[i] +
99 >                                                2.*(1.-rindex)*r->pert[i];
100                          normalize(p.rdir);
101                  } else {
102                          VCOPY(p.rdir, r->rdir);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines