--- ray/src/rt/glass.c 1990/03/27 11:40:00 1.3 +++ ray/src/rt/glass.c 1990/10/15 20:39:32 1.5 @@ -60,6 +60,7 @@ register RAY *r; if (r->rod < 0.0) /* reorient if necessary */ flipsurface(r); + r->rt = r->rot; /* default ray length */ /* get modifiers */ raytexture(r, m->omod); pdot = raynormal(pnorm, r); @@ -86,7 +87,8 @@ register RAY *r; multcolor(p.rcol, r->pcol); /* modify */ multcolor(p.rcol, trans); addcolor(r->rcol, p.rcol); - r->rt = r->rot + p.rt; + if (bright(p.rcol) > .5) + r->rt = r->rot + p.rt; } if (r->crtype & SHADOW) /* skip reflected ray */ @@ -104,7 +106,5 @@ register RAY *r; rayvalue(&p); multcolor(p.rcol, refl); addcolor(r->rcol, p.rcol); - if (bright(refl) > bright(trans)) - r->rt = r->rot + p.rt; } }