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 1.1 by greg, Thu Feb 2 10:41:15 1989 UTC vs.
Revision 1.2 by greg, Wed Jun 7 08:35:12 1989 UTC

# Line 10 | Line 10
10  
11   #define  SDISTANT       01              /* source distant flag */
12   #define  SSKIP          02              /* source skip flag */
13 #define  SPROX          04              /* source proximity flag */
14 #define  SSPOT          010             /* source spotlight flag */
13  
14   typedef struct {
17        float  siz;             /* output solid angle */
18        float  flen;            /* focal length */
19        FVECT  aim;             /* aim direction */
20 } SPOT;                 /* spotlight */
21
22 typedef struct {
15          short  sflags;          /* source flags */
16          FVECT  sloc;            /* direction or position of source */
17          float  ss;              /* tangent or disk radius */
18          float  ss2;             /* domega or projected area */
19 <        union {
28 <                float  prox;            /* proximity */
29 <                SPOT  *s;               /* spot */
30 <        } sl;                   /* localized source information */
19 >        long  ntests, nhits;    /* shadow tests and hits */
20          OBJREC  *so;            /* source object */
21 < }  SOURCE;              /* light source */
21 > }  SRCREC;              /* light source */
22  
23 < #define  MAXSOURCE      512             /* maximum # of sources */
23 > typedef struct {
24 >        int  sno;               /* source number */
25 >        FVECT  dir;             /* source direction */
26 >        float  dom;             /* domega for source */
27 >        float  brt;             /* brightness (for comparison) */
28 >        COLOR  val;             /* contribution */
29 > }  CONTRIB;             /* direct contribution */
30  
31 < extern SOURCE  srcval[MAXSOURCE];       /* our source list */
31 > extern SRCREC  *source;                 /* our source list */
32   extern int  nsources;                   /* the number of sources */
33  
34 < extern double  srcray();                /* ray to source */
40 <
41 < extern SPOT  *makespot();               /* make spotlight */
34 > extern double  srcray();                /* ray to source */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines