--- ray/src/rt/ray.h 1996/03/27 12:17:10 2.7 +++ ray/src/rt/ray.h 1997/03/07 16:42:54 2.10 @@ -16,8 +16,6 @@ #define MAXDIM 32 /* maximum number of dimensions */ -#define MAXSLIST 32 /* maximum sources to check */ - /* ray type flags */ #define PRIMARY 01 /* original ray */ #define SHADOW 02 /* ray to light source */ @@ -44,7 +42,8 @@ typedef struct ray { OBJECT *clipset; /* set of objects currently clipped */ OBJECT *newcset; /* next clipset, used for transmission */ int (*revf)(); /* evaluation function for this ray */ - OBJREC *ro; /* intersected object */ + OBJECT robj; /* object number from octree */ + OBJREC *ro; /* intersected object (for material) */ double rot; /* distance to object */ FVECT rop; /* intersection point */ FVECT ron; /* intersection surface normal */ @@ -55,7 +54,7 @@ typedef struct ray { COLOR rcol; /* returned ray value */ double rt; /* returned effective ray length */ COLOR cext; /* medium extinction coefficient */ - float albedo; /* medium scattering albedo */ + COLOR albedo; /* medium scattering albedo */ float gecc; /* scattering eccentricity coefficient */ int *slights; /* list of lights to test for scattering */ } RAY;