| 1 |
< |
/* Copyright (c) 1986 Regents of the University of California */ |
| 1 |
> |
/* Copyright (c) 1990 Regents of the University of California */ |
| 2 |
|
|
| 3 |
|
/* SCCSid "$SunId$ LBL" */ |
| 4 |
|
|
| 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 */ |
| 44 |
|
FVECT ron; /* intersection surface normal */ |
| 45 |
|
double rod; /* -DOT(rdir, ron) */ |
| 46 |
< |
double rofx[4][4]; /* transform from object space */ |
| 46 |
< |
double rofs; /* scaling factor from object */ |
| 47 |
< |
double robx[4][4]; /* transform back to object space */ |
| 48 |
< |
double robs; /* back scaling factor */ |
| 46 |
> |
FULLXF *rox; /* object transformation */ |
| 47 |
|
FVECT pert; /* surface normal perturbation */ |
| 48 |
|
COLOR pcol; /* pattern color */ |
| 49 |
|
COLOR rcol; /* returned ray value */ |
| 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 */ |
| 58 |
+ |
extern int ndims; /* number of dimensions so far */ |
| 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) |