--- ray/src/rt/sphere.c 2003/02/25 02:47:23 2.4 +++ ray/src/rt/sphere.c 2003/06/26 00:58:10 2.6 @@ -1,5 +1,5 @@ #ifndef lint -static const char RCSid[] = "$Id: sphere.c,v 2.4 2003/02/25 02:47:23 greg Exp $"; +static const char RCSid[] = "$Id: sphere.c,v 2.6 2003/06/26 00:58:10 schorsch Exp $"; #endif /* * sphere.c - compute ray intersection with spheres. @@ -20,7 +20,7 @@ register RAY *r; double root[2]; /* quadratic roots */ int nroots; double t; - register FLOAT *ap; + register RREAL *ap; register int i; if (so->oargs.nfargs != 4) @@ -77,6 +77,8 @@ register RAY *r; } r->rod = -DOT(r->rdir, r->ron); r->rox = NULL; + r->pert[0] = r->pert[1] = r->pert[2] = 0.0; + r->uv[0] = r->uv[1] = 0.0; return(1); /* hit */ }