--- ray/src/rt/source.h 2008/12/06 01:08:53 2.18 +++ ray/src/rt/source.h 2020/04/06 21:09:07 2.21 @@ -1,4 +1,4 @@ -/* RCSid $Id: source.h,v 2.18 2008/12/06 01:08:53 greg Exp $ */ +/* RCSid $Id: source.h,v 2.21 2020/04/06 21:09:07 greg Exp $ */ /* * source.h - header file for ray tracing sources. * @@ -19,6 +19,9 @@ extern "C" { #ifndef SHADCACHE #define SHADCACHE 20 /* shadow cache resolution */ #endif +#ifndef MINSHADCNT +#define MINSHADCNT 4 /* test all sources if this few */ +#endif #define SDISTANT 01 /* source distant flag */ #define SSKIP 02 /* source skip flag */ @@ -143,8 +146,8 @@ extern int nsources; /* the number of sources */ #define setsource(s,o) (*sfun[(o)->otype].of->setsrc)(s,o) /* defined in source.c */ -extern OBJREC *findmaterial(OBJREC *o); extern void marksources(void); +extern void distantsources(void); extern void freesources(void); extern int srcray(RAY *sr, RAY *r, SRCINDEX *si); extern void srcvalue(RAY *r);