--- ray/src/rt/m_brdf.c 2013/03/20 23:07:51 2.29 +++ ray/src/rt/m_brdf.c 2014/01/25 18:27:39 2.31 @@ -1,5 +1,5 @@ #ifndef lint -static const char RCSid[] = "$Id: m_brdf.c,v 2.29 2013/03/20 23:07:51 greg Exp $"; +static const char RCSid[] = "$Id: m_brdf.c,v 2.31 2014/01/25 18:27:39 greg Exp $"; #endif /* * Shading for materials with arbitrary BRDF's @@ -206,7 +206,7 @@ m_brdf( /* color a ray that hit a BRDTfunc material BRDFDAT nd; RAY sr; double mirtest=0, mirdist=0; - double transtest, transdist; + double transtest=0, transdist=0; int hasrefl, hastrans; int hastexture; COLOR ctmp; @@ -363,8 +363,7 @@ m_brdf2( /* color a ray that hit a BRDF material */ objerror(m, USER, "bad # arguments"); /* check for back side */ if (r->rod < 0.0) { - if (!backvis && m->otype != MAT_TFUNC - && m->otype != MAT_TDATA) { + if (!backvis) { raytrans(r); return(1); }