1 |
|
#ifndef lint |
2 |
< |
static const char RCSid[] = "$Id$"; |
2 |
> |
static const char RCSid[] = "$Id$"; |
3 |
|
#endif |
4 |
|
/* |
5 |
|
* sphere.c - compute ray intersection with spheres. |
20 |
|
double root[2]; /* quadratic roots */ |
21 |
|
int nroots; |
22 |
|
double t; |
23 |
< |
register FLOAT *ap; |
23 |
> |
register RREAL *ap; |
24 |
|
register int i; |
25 |
|
|
26 |
|
if (so->oargs.nfargs != 4) |
77 |
|
} |
78 |
|
r->rod = -DOT(r->rdir, r->ron); |
79 |
|
r->rox = NULL; |
80 |
+ |
r->pert[0] = r->pert[1] = r->pert[2] = 0.0; |
81 |
+ |
r->uv[0] = r->uv[1] = 0.0; |
82 |
|
|
83 |
|
return(1); /* hit */ |
84 |
|
} |