--- ray/src/rt/glass.c 2018/11/13 19:58:33 2.27 +++ ray/src/rt/glass.c 2019/04/19 19:01:32 2.28 @@ -1,5 +1,5 @@ #ifndef lint -static const char RCSid[] = "$Id: glass.c,v 2.27 2018/11/13 19:58:33 greg Exp $"; +static const char RCSid[] = "$Id: glass.c,v 2.28 2019/04/19 19:01:32 greg Exp $"; #endif /* * glass.c - simpler shading function for thin glass surfaces. @@ -151,9 +151,10 @@ m_glass( /* color a ray which hit a thin glass surfac multcolor(p.rcol, p.rcoef); copycolor(r->mcol, p.rcol); addcolor(r->rcol, p.rcol); + r->rmt = r->rot; if (r->ro != NULL && isflat(r->ro->otype) && !hastexture | (r->crtype & AMBIENT)) - r->rmt = r->rot + raydistance(&p); + r->rmt += raydistance(&p); } return(1); }