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.2 by greg, Sat Jan 4 19:53:55 1992 UTC vs.
Revision 2.7 by greg, Wed Mar 27 12:17:10 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 + #define  MAXSLIST       32      /* maximum sources to check */
20 +
21                                  /* ray type flags */
22   #define  PRIMARY        01              /* original ray */
23   #define  SHADOW         02              /* ray to light source */
# Line 27 | Line 31
31   #define  RAYREFL        (SHADOW|REFLECTED|AMBIENT|SPECULAR)
32  
33   typedef struct ray {
34 <        long  rno;              /* unique ray number */
34 >        unsigned long  rno;     /* unique ray number */
35          int  rlvl;              /* number of reflections for this ray */
36          float  rweight;         /* cumulative weight of this ray */
37          short  rtype;           /* ray type */
# Line 35 | Line 39 | typedef struct ray {
39          struct ray  *parent;    /* ray this originated from */
40          FVECT  rorg;            /* origin of ray */
41          FVECT  rdir;            /* normalized direction of ray */
42 +        double  rmax;           /* maximum distance (aft clipping plane) */
43          int  rsrc;              /* source we're aiming for */
44          OBJECT  *clipset;       /* set of objects currently clipped */
45          OBJECT  *newcset;       /* next clipset, used for transmission */
# Line 49 | Line 54 | typedef struct ray {
54          COLOR  pcol;            /* pattern color */
55          COLOR  rcol;            /* returned ray value */
56          double  rt;             /* returned effective ray length */
57 +        COLOR  cext;            /* medium extinction coefficient */
58 +        float  albedo;          /* medium scattering albedo */
59 +        float  gecc;            /* scattering eccentricity coefficient */
60 +        int  *slights;          /* list of lights to test for scattering */
61   }  RAY;
62  
63   extern int  raytrace();
64  
65   extern double  raynormal();
66  
67 + extern double  raydist();
68 +
69   extern int  dimlist[];          /* dimension list for distribution */
70   extern int  ndims;              /* number of dimensions so far */
71   extern int  samplendx;          /* index for this sample */
61
62 #define  MAXDIM         32      /* maximum number of dimensions */
72  
73   #define  rayvalue(r)    (*(r)->revf)(r)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines