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.41 by greg, Thu Jul 25 16:50:54 2019 UTC vs.
Revision 2.45 by greg, Sun Jan 31 18:08:04 2021 UTC

# Line 57 | Line 57 | typedef struct ray {
57          FULLXF  *rox;           /* object transformation */
58          int     *slights;       /* list of lights to test for scattering */
59          RNUMBER rno;            /* unique ray number */
60 <        short   rflips;         /* surface orientation has been reversed */
61 <        short   rlvl;           /* number of reflections for this ray */
60 >        OBJECT  robj;           /* intersected object number */
61          int     rsrc;           /* source we're aiming for */
62          float   rweight;        /* cumulative weight (for termination) */
63 +        float   gecc;           /* scattering eccentricity coefficient */
64          COLOR   rcoef;          /* contribution coefficient w.r.t. parent */
65          COLOR   pcol;           /* pattern color */
66          COLOR   mcol;           /* mirrored color contribution */
67          COLOR   rcol;           /* returned radiance value */
68          COLOR   cext;           /* medium extinction coefficient */
69          COLOR   albedo;         /* medium scattering albedo */
70 <        float   gecc;           /* scattering eccentricity coefficient */
71 <        OBJECT  robj;           /* intersected object number */
70 >        short   rflips;         /* surface orientation has been reversed */
71 >        short   rlvl;           /* number of reflections for this ray */
72          short   rtype;          /* ray type */
73          short   crtype;         /* cumulative ray type */
74   }  RAY;
# Line 221 | Line 221 | extern int     ray_fifo_flush(void);
221   extern int      rayorigin(RAY *r, int rt, const RAY *ro, const COLOR rc);
222   extern void     rayclear(RAY *r);
223   extern void     raytrace(RAY *r);
224 + extern int      rayreject(OBJREC *o, RAY *r, double t);
225   extern void     rayhit(OBJECT *oset, RAY *r);
226   extern void     raycont(RAY *r);
227   extern void     raytrans(RAY *r);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines