--- ray/src/rt/source.h 1989/06/07 10:29:01 1.3 +++ ray/src/rt/source.h 1991/02/11 08:43:46 1.5 @@ -13,6 +13,8 @@ #define SPROX 04 /* source proximity flag */ #define SSPOT 010 /* source spotlight flag */ +#define AIMREQT 100 /* required aim success/failure */ + typedef struct { float siz; /* output solid angle */ float flen; /* focal length */ @@ -28,17 +30,21 @@ typedef struct { float prox; /* proximity */ SPOT *s; /* spot */ } sl; /* localized source information */ + int aimsuccess; /* aim successes - AIMREQT*failures */ long ntests, nhits; /* shadow tests and hits */ OBJREC *so; /* source object */ } SRCREC; /* light source */ typedef struct { - int sno; /* source number */ FVECT dir; /* source direction */ float dom; /* domega for source */ - float brt; /* brightness (for comparison) */ COLOR val; /* contribution */ } CONTRIB; /* direct contribution */ + +typedef struct { + int sno; /* source number */ + float brt; /* brightness (for comparison) */ +} CNTPTR; /* contribution pointer */ extern SRCREC *source; /* our source list */ extern int nsources; /* the number of sources */