--- ray/src/rt/aniso.c 2003/03/12 04:59:05 2.38 +++ ray/src/rt/aniso.c 2003/08/28 03:22:16 2.40 @@ -1,5 +1,5 @@ #ifndef lint -static const char RCSid[] = "$Id: aniso.c,v 2.38 2003/03/12 04:59:05 greg Exp $"; +static const char RCSid[] = "$Id: aniso.c,v 2.40 2003/08/28 03:22:16 greg Exp $"; #endif /* * Shading functions for anisotropic materials. @@ -9,6 +9,8 @@ static const char RCSid[] = "$Id: aniso.c,v 2.38 2003/ #include "ray.h" +#include "ambient.h" + #include "otypes.h" #include "func.h" @@ -265,8 +267,7 @@ register RAY *r; /* diffuse reflection */ nd.rdiff = 1.0 - nd.trans - nd.rspec; - if (r->ro != NULL && isflat(r->ro->otype) && - DOT(r->pert,r->pert) <= FTINY*FTINY) + if (r->ro != NULL && isflat(r->ro->otype)) nd.specfl |= SP_FLAT; getacoords(r, &nd); /* set up coordinates */