ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/rt/source.h
(Generate patch)

Comparing ray/src/rt/source.h (file contents):
Revision 2.18 by greg, Sat Dec 6 01:08:53 2008 UTC vs.
Revision 2.24 by greg, Wed Nov 15 18:02:53 2023 UTC

# Line 19 | Line 19 | extern "C" {
19   #ifndef  SHADCACHE
20   #define  SHADCACHE      20              /* shadow cache resolution */
21   #endif
22 + #ifndef  MINSHADCNT
23 + #define  MINSHADCNT     2               /* test at least this many shadows */
24 + #endif
25  
26   #define  SDISTANT       01              /* source distant flag */
27   #define  SSKIP          02              /* source skip flag */
# Line 69 | Line 72 | typedef struct {
72          } sa;                   /* source aiming information */
73          unsigned long
74                  ntests, nhits;  /* shadow tests and hits */
75 < #ifdef  SHADCACHE
75 > #if  SHADCACHE
76          OBSCACHE  *obscache;    /* obstructor cache */
77   #endif
78          int  sflags;            /* source flags */
# Line 143 | Line 146 | extern int  nsources;                  /* the number of sources */
146   #define  setsource(s,o)         (*sfun[(o)->otype].of->setsrc)(s,o)
147  
148                                          /* defined in source.c */
146 extern OBJREC   *findmaterial(OBJREC *o);
149   extern void     marksources(void);
150 + extern void     distantsources(void);
151   extern void     freesources(void);
152   extern int      srcray(RAY *sr, RAY *r, SRCINDEX *si);
153   extern void     srcvalue(RAY *r);
154   extern int      sourcehit(RAY *r);
155 < typedef void srcdirf_t(COLOR cv, void *np, FVECT ldir, double omega);
155 > typedef void srcdirf_t(SCOLOR cv, void *np, FVECT ldir, double omega);
156   extern void     direct(RAY *r, srcdirf_t *f, void *p);
157   extern void     srcscatter(RAY *r);
158   extern int      m_light(OBJREC *m, RAY *r);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines