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.5 by greg, Mon Feb 11 08:43:46 1991 UTC

# Line 13 | Line 13
13   #define  SPROX          04              /* source proximity flag */
14   #define  SSPOT          010             /* source spotlight flag */
15  
16 + #define  AIMREQT        100             /* required aim success/failure */
17 +
18   typedef struct {
19          float  siz;             /* output solid angle */
20          float  flen;            /* focal length */
# Line 28 | Line 30 | typedef struct {
30                  float  prox;            /* proximity */
31                  SPOT  *s;               /* spot */
32          } sl;                   /* localized source information */
33 +        int  aimsuccess;        /* aim successes - AIMREQT*failures */
34 +        long  ntests, nhits;    /* shadow tests and hits */
35          OBJREC  *so;            /* source object */
36 < }  SOURCE;              /* light source */
36 > }  SRCREC;              /* light source */
37  
38 < #define  MAXSOURCE      512             /* maximum # of sources */
38 > typedef struct {
39 >        FVECT  dir;             /* source direction */
40 >        float  dom;             /* domega for source */
41 >        COLOR  val;             /* contribution */
42 > }  CONTRIB;             /* direct contribution */
43  
44 < extern SOURCE  srcval[MAXSOURCE];       /* our source list */
44 > typedef struct {
45 >        int  sno;               /* source number */
46 >        float  brt;             /* brightness (for comparison) */
47 > }  CNTPTR;              /* contribution pointer */
48 >
49 > extern SRCREC  *source;                 /* our source list */
50   extern int  nsources;                   /* the number of sources */
51  
52 < extern double  srcray();                /* ray to source */
52 > extern double  srcray();                /* ray to source */
53  
54   extern SPOT  *makespot();               /* make spotlight */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines