--- ray/src/rt/glass.c 1991/05/10 08:51:00 1.8 +++ ray/src/rt/glass.c 1991/08/12 08:20:57 1.10 @@ -61,7 +61,6 @@ register RAY *r; if (r->rod < 0.0) /* reorient if necessary */ flipsurface(r); - r->rt = r->rot; /* default ray length */ transtest = 0; /* get modifiers */ raytexture(r, m->omod); @@ -84,7 +83,8 @@ register RAY *r; } /* transmitted ray */ if (rayorigin(&p, r, TRANS, bright(trans)) == 0) { - if (DOT(r->pert,r->pert) > FTINY*FTINY) { + if (!(r->crtype & SHADOW) && + DOT(r->pert,r->pert) > FTINY*FTINY) { for (i = 0; i < 3; i++) /* perturb direction */ p.rdir[i] = r->rdir[i] - r->pert[i]/RINDEX; normalize(p.rdir);