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.4 by greg, Thu Jun 8 09:35:41 1989 UTC

# Line 28 | Line 28 | typedef struct {
28                  float  prox;            /* proximity */
29                  SPOT  *s;               /* spot */
30          } sl;                   /* localized source information */
31 +        long  ntests, nhits;    /* shadow tests and hits */
32          OBJREC  *so;            /* source object */
33 < }  SOURCE;              /* light source */
33 > }  SRCREC;              /* light source */
34  
35 < #define  MAXSOURCE      512             /* maximum # of sources */
35 > typedef struct {
36 >        FVECT  dir;             /* source direction */
37 >        float  dom;             /* domega for source */
38 >        COLOR  val;             /* contribution */
39 > }  CONTRIB;             /* direct contribution */
40  
41 < extern SOURCE  srcval[MAXSOURCE];       /* our source list */
41 > typedef struct {
42 >        int  sno;               /* source number */
43 >        float  brt;             /* brightness (for comparison) */
44 > }  CNTPTR;              /* contribution pointer */
45 >
46 > extern SRCREC  *source;                 /* our source list */
47   extern int  nsources;                   /* the number of sources */
48  
49 < extern double  srcray();                /* ray to source */
49 > extern double  srcray();                /* ray to source */
50  
51   extern SPOT  *makespot();               /* make spotlight */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines