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.12 by greg, Mon Mar 3 00:10:51 2003 UTC vs.
Revision 2.13 by greg, Wed Mar 12 04:59:05 2003 UTC

# Line 1 | Line 1
1   #ifndef lint
2 < static const char       RCSid[] = "$Id$";
2 > static const char RCSid[] = "$Id$";
3   #endif
4   /*
5   *  glass.c - simpler shading function for thin glass surfaces.
# Line 73 | Line 73 | register RAY  *r;
73          mirtest = transtest = 0;
74          mirdist = transdist = r->rot;
75                                                  /* perturb normal */
76 <        if (hastexture = DOT(r->pert,r->pert) > FTINY*FTINY)
76 >        if (hastexture = (DOT(r->pert,r->pert) > FTINY*FTINY)) {
77                  pdot = raynormal(pnorm, r);
78 <        else {
78 >        } else {
79                  VCOPY(pnorm, r->ron);
80                  pdot = r->rod;
81          }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines