--- ray/src/rt/ray.h 2019/07/25 16:50:54 2.41 +++ ray/src/rt/ray.h 2020/06/15 15:44:03 2.43 @@ -1,4 +1,4 @@ -/* RCSid $Id: ray.h,v 2.41 2019/07/25 16:50:54 greg Exp $ */ +/* RCSid $Id: ray.h,v 2.43 2020/06/15 15:44:03 greg Exp $ */ /* * ray.h - header file for routines using rays. */ @@ -57,18 +57,18 @@ typedef struct ray { FULLXF *rox; /* object transformation */ int *slights; /* list of lights to test for scattering */ RNUMBER rno; /* unique ray number */ - short rflips; /* surface orientation has been reversed */ - short rlvl; /* number of reflections for this ray */ + OBJECT robj; /* intersected object number */ int rsrc; /* source we're aiming for */ float rweight; /* cumulative weight (for termination) */ + float gecc; /* scattering eccentricity coefficient */ COLOR rcoef; /* contribution coefficient w.r.t. parent */ COLOR pcol; /* pattern color */ COLOR mcol; /* mirrored color contribution */ COLOR rcol; /* returned radiance value */ COLOR cext; /* medium extinction coefficient */ COLOR albedo; /* medium scattering albedo */ - float gecc; /* scattering eccentricity coefficient */ - OBJECT robj; /* intersected object number */ + short rflips; /* surface orientation has been reversed */ + short rlvl; /* number of reflections for this ray */ short rtype; /* ray type */ short crtype; /* cumulative ray type */ } RAY; @@ -137,6 +137,7 @@ extern int ambincl; /* include == 1, exclude == 0 */ extern int ray_pnprocs; /* number of child processes */ extern int ray_pnidle; /* number of idle processes */ +extern int ray_pnbatch; /* throughput over responsiveness? */ #ifndef AMBLLEN #define AMBLLEN 512 /* max. ambient list length */