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 1.2 by greg, Wed Jun 7 08:38:33 1989 UTC vs.
Revision 1.3 by greg, Tue Mar 27 11:40:00 1990 UTC

# Line 86 | Line 86 | register RAY  *r;
86                  multcolor(p.rcol, r->pcol);     /* modify */
87                  multcolor(p.rcol, trans);
88                  addcolor(r->rcol, p.rcol);
89 +                r->rt = r->rot + p.rt;
90          }
91 +
92          if (r->crtype & SHADOW)                 /* skip reflected ray */
93                  return;
94                                                  /* compute reflectance */
# Line 102 | Line 104 | register RAY  *r;
104                  rayvalue(&p);
105                  multcolor(p.rcol, refl);
106                  addcolor(r->rcol, p.rcol);
107 +                if (bright(refl) > bright(trans))
108 +                        r->rt = r->rot + p.rt;
109          }
110   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines