--- ray/src/rt/m_brdf.c 1991/05/08 08:27:50 1.7 +++ ray/src/rt/m_brdf.c 1991/06/13 13:58:16 1.9 @@ -237,7 +237,6 @@ register RAY *r; raytexture(r, m->omod); nd.pdot = raynormal(nd.pnorm, r); /* perturb normal */ multcolor(nd.mcolor, r->pcol); /* modify material color */ - r->rt = r->rot; /* default ray length */ transtest = 0; /* load auxiliary files */ if (m->otype == MAT_PDATA || m->otype == MAT_MDATA @@ -286,8 +285,10 @@ register RAY *r; sr.rdir[i] = r->rdir[i] - .75*r->pert[i]; normalize(sr.rdir); - } else + } else { + VCOPY(sr.rdir, r->rdir); transtest = 2; + } rayvalue(&sr); multcolor(sr.rcol, ctmp); addcolor(r->rcol, sr.rcol);