--- ray/src/rt/dielectric.c 1989/02/02 10:41:21 1.1 +++ ray/src/rt/dielectric.c 1990/10/15 20:39:30 1.5 @@ -66,6 +66,8 @@ register RAY *r; if (m->oargs.nfargs != (m->otype==MAT_DIELECTRIC ? 5 : 8)) objerror(m, USER, "bad arguments"); + r->rt = r->rot; /* just use ray length */ + raytexture(r, m->omod); /* get modifiers */ cos1 = raynormal(dnorm, r); /* cosine of theta1 */ @@ -92,7 +94,7 @@ register RAY *r; else setcolor(mcolor, 1.0, 1.0, 1.0); } - mabsorp = intens(mcolor); + mabsorp = bright(mcolor); d2 = 1.0 - nratio*nratio*(1.0 - cos1*cos1); /* compute cos theta2 */ @@ -253,7 +255,7 @@ double tr; /* trace source ray */ normalize(sray.rdir); rayvalue(&sray); - if (intens(sray.rcol) <= FTINY) /* missed it */ + if (bright(sray.rcol) <= FTINY) /* missed it */ continue; /*