--- ray/src/rt/glass.c 1989/06/07 08:38:33 1.2 +++ ray/src/rt/glass.c 1990/03/27 11:40:00 1.3 @@ -86,7 +86,9 @@ 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 (r->crtype & SHADOW) /* skip reflected ray */ return; /* compute reflectance */ @@ -102,5 +104,7 @@ 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; } }