--- ray/src/util/glare.h 1991/03/19 11:11:18 1.6 +++ ray/src/util/glare.h 1991/03/20 11:56:42 1.8 @@ -18,12 +18,19 @@ #define SEPS 2 /* sources this close ==> contig. */ +#define SAMIN .005 /* minimum solid angle for source */ +#define MAXBUDDY (4.*sqrt(SAMIN/PI)) /* max separation for pairing */ + +#define TOOSMALL(s) ((s)->brt*(s)->dom < threshold*SAMIN) + extern VIEW ourview; /* our view */ extern VIEW pictview; /* picture view */ extern VIEW leftview, rightview; /* leftmost and rightmost views */ extern int verbose; /* verbose reporting */ extern char *progname; /* global argv[0] */ + +extern double threshold; /* threshold value for glare sources */ extern int sampdens; /* sample density */ extern ANGLE glarang[]; /* glare calculation angles */