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.40 by greg, Wed Dec 5 02:12:23 2018 UTC vs.
Revision 2.41 by greg, Thu Jul 25 16:50:54 2019 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 <        int     rlvl;           /* number of reflections for this ray */
60 >        short   rflips;         /* surface orientation has been reversed */
61 >        short   rlvl;           /* number of reflections for this ray */
62          int     rsrc;           /* source we're aiming for */
63          float   rweight;        /* cumulative weight (for termination) */
64          COLOR   rcoef;          /* contribution coefficient w.r.t. parent */
# Line 76 | Line 77 | typedef struct ray {
77  
78   #define  raydistance(r) (bright((r)->mcol) > 0.5*bright((r)->rcol) ? \
79                                  (r)->rmt : (r)->rxt)
80 +
81 + #define  rayreorient(r) if ((r)->rflips & 1) flipsurface(r); else
82  
83   extern char  VersionID[];       /* Radiance version ID string */
84  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines