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.17 by greg, Wed Jul 25 05:38:24 2007 UTC vs.
Revision 2.23 by greg, Thu Aug 4 22:43:46 2022 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 26 | Line 29 | extern "C" {
29   #define  SSPOT          010             /* source spotlight flag */
30   #define  SVIRTUAL       020             /* source virtual flag */
31   #define  SFLAT          040             /* source flat flag */
32 < #define  SCYL           0100            /* source cylindrical flag */
33 < #define  SFOLLOW        0200            /* source follow path flag */
32 > #define  SCIR           0100            /* source circular flag */
33 > #define  SCYL           0200            /* source cylindrical flag */
34 > #define  SFOLLOW        0400            /* source follow path flag */
35  
36   typedef struct {
37          FVECT  aim;             /* aim direction or center */
# Line 68 | 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 142 | 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 */
145 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);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines