--- ray/src/rt/raytrace.c 1998/06/17 12:53:06 2.31 +++ ray/src/rt/raytrace.c 1998/08/06 10:30:38 2.32 @@ -277,9 +277,9 @@ double coef; backmat = rayshade(&br, back); /* check for transparency */ if (backmat ^ foremat) - if (backmat && coef > FTINY) + if (!foremat && coef > FTINY) raytrans(&fr); - else if (foremat && coef < 1.0-FTINY) + else if (!backmat && coef < 1.0-FTINY) raytrans(&br); /* mix perturbations */ for (i = 0; i < 3; i++)