--- ray/src/rt/ambient.h 1991/11/12 17:10:27 2.1 +++ ray/src/rt/ambient.h 1996/02/14 15:18:19 2.6 @@ -12,6 +12,7 @@ * and don't pass these vectors to fvect routines. */ typedef struct ambrec { + unsigned long latick; /* last accessed tick */ float pos[3]; /* position in space */ float dir[3]; /* normal direction */ int lvl; /* recursion level of parent ray */ @@ -24,6 +25,7 @@ typedef struct ambrec { } AMBVAL; /* ambient value */ extern COLOR ambval; /* global ambient component */ +extern int ambvwt; /* initial weight for ambient value */ extern double ambacc; /* ambient accuracy */ extern int ambres; /* ambient resolution */ extern int ambdiv; /* number of divisions for calculation */ @@ -37,3 +39,7 @@ extern double minarad; /* minimum ambient radius */ extern double sumambient(), doambient(), makeambient(); #define AVGREFL 0.5 /* assumed average reflectance */ + +#define AMBVALSIZ 75 /* number of bytes in portable AMBVAL struct */ +#define AMBMAGIC 557 /* magic number for ambient value files */ +#define AMBFMT "Radiance_ambval" /* format id string */