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

Comparing ray/src/rt/ray.h (file contents):
Revision 2.3 by greg, Tue May 25 10:30:14 1993 UTC vs.
Revision 2.9 by greg, Wed Jun 5 11:27:30 1996 UTC

# Line 1 | Line 1
1 < /* Copyright (c) 1992 Regents of the University of California */
1 > /* Copyright (c) 1995 Regents of the University of California */
2  
3   /* SCCSid "$SunId$ LBL" */
4  
# Line 14 | Line 14
14  
15   #include  "color.h"
16  
17 + #define  MAXDIM         32      /* maximum number of dimensions */
18 +
19                                  /* ray type flags */
20   #define  PRIMARY        01              /* original ray */
21   #define  SHADOW         02              /* ray to light source */
# Line 35 | Line 37 | typedef struct ray {
37          struct ray  *parent;    /* ray this originated from */
38          FVECT  rorg;            /* origin of ray */
39          FVECT  rdir;            /* normalized direction of ray */
40 +        double  rmax;           /* maximum distance (aft clipping plane) */
41          int  rsrc;              /* source we're aiming for */
42          OBJECT  *clipset;       /* set of objects currently clipped */
43          OBJECT  *newcset;       /* next clipset, used for transmission */
# Line 49 | Line 52 | typedef struct ray {
52          COLOR  pcol;            /* pattern color */
53          COLOR  rcol;            /* returned ray value */
54          double  rt;             /* returned effective ray length */
55 +        COLOR  cext;            /* medium extinction coefficient */
56 +        COLOR  albedo;          /* medium scattering albedo */
57 +        float  gecc;            /* scattering eccentricity coefficient */
58 +        int  *slights;          /* list of lights to test for scattering */
59   }  RAY;
60  
61   extern int  raytrace();
62  
63   extern double  raynormal();
64  
65 + extern double  raydist();
66 +
67   extern int  dimlist[];          /* dimension list for distribution */
68   extern int  ndims;              /* number of dimensions so far */
69   extern int  samplendx;          /* index for this sample */
61
62 #define  MAXDIM         32      /* maximum number of dimensions */
70  
71   #define  rayvalue(r)    (*(r)->revf)(r)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines