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.20 by greg, Wed Aug 7 05:10:09 2013 UTC vs.
Revision 2.21 by greg, Sat Jan 25 18:27:39 2014 UTC

# Line 65 | Line 65 | m_glass(               /* color a ray which hit a thin glass surfac
65                  rindex = m->oargs.farg[3];      /* use their value */
66          else
67                  objerror(m, USER, "bad arguments");
68 +                                                /* check back face visibility */
69 +        if (!backvis && r->rod <= 0.0) {
70 +                raytrans(r);
71 +                return(1);
72 +        }
73                                                  /* check transmission */
74          setcolor(mcolor, m->oargs.farg[0], m->oargs.farg[1], m->oargs.farg[2]);
75          if ((hastrans = (intens(mcolor) > 1e-15))) {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines