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

Comparing ray/src/rt/m_mirror.c (file contents):
Revision 2.1 by greg, Tue Nov 12 17:10:20 1991 UTC vs.
Revision 2.2 by greg, Fri Nov 20 12:09:16 1992 UTC

# Line 76 | Line 76 | register RAY  *r;
76                  pdot = raynormal(pnorm, r);     /* use textures */
77                  for (i = 0; i < 3; i++)
78                          nr.rdir[i] = r->rdir[i] + 2.*pdot*pnorm[i];
79 +                                                /* check for penetration */
80 +                if (DOT(nr.rdir, r->ron) <= FTINY)
81 +                        for (i = 0; i < 3; i++)
82 +                                nr.rdir[i] = r->rdir[i] + 2.*r->rod*r->ron[i];
83          }
84          rayvalue(&nr);
85          multcolor(nr.rcol, mcolor);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines