37 |
|
int rsrc; /* source we're aiming for */ |
38 |
|
OBJECT *clipset; /* set of objects currently clipped */ |
39 |
|
OBJECT *newcset; /* next clipset, used for transmission */ |
40 |
+ |
int (*revf)(); /* evaluation function for this ray */ |
41 |
|
OBJREC *ro; /* intersected object */ |
42 |
|
double rot; /* distance to object */ |
43 |
|
FVECT rop; /* intersection point */ |
50 |
|
double rt; /* returned effective ray length */ |
51 |
|
} RAY; |
52 |
|
|
53 |
+ |
extern int raytrace(); |
54 |
+ |
|
55 |
|
extern double raynormal(); |
56 |
|
|
57 |
|
extern int dimlist[]; /* dimension list for distribution */ |
59 |
|
extern int samplendx; /* index for this sample */ |
60 |
|
|
61 |
|
#define MAXDIM 16 /* maximum number of dimensions */ |
62 |
+ |
|
63 |
+ |
#define rayvalue(r) (*(r)->revf)(r) |