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.27 by greg, Tue Nov 13 19:58:33 2018 UTC vs.
Revision 2.28 by greg, Fri Apr 19 19:01:32 2019 UTC

# Line 151 | Line 151 | m_glass(               /* color a ray which hit a thin glass surfac
151                  multcolor(p.rcol, p.rcoef);
152                  copycolor(r->mcol, p.rcol);
153                  addcolor(r->rcol, p.rcol);
154 +                r->rmt = r->rot;
155                  if (r->ro != NULL && isflat(r->ro->otype) &&
156                                  !hastexture | (r->crtype & AMBIENT))
157 <                        r->rmt = r->rot + raydistance(&p);
157 >                        r->rmt += raydistance(&p);
158          }
159          return(1);
160   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines