--- ray/src/rt/ray.h 2005/05/26 06:55:22 2.26 +++ ray/src/rt/ray.h 2005/06/21 15:06:50 2.28 @@ -1,4 +1,4 @@ -/* RCSid $Id: ray.h,v 2.26 2005/05/26 06:55:22 greg Exp $ */ +/* RCSid $Id: ray.h,v 2.28 2005/06/21 15:06:50 greg Exp $ */ /* * ray.h - header file for routines using rays. */ @@ -85,6 +85,8 @@ extern int ray_savesiz; /* size of parameter save buff extern int do_irrad; /* compute irradiance? */ +extern int rand_samp; /* pure Monte Carlo sampling? */ + extern double dstrsrc; /* square source distribution */ extern double shadthresh; /* shadow threshold */ extern double shadcert; /* shadow testing certainty */ @@ -127,6 +129,7 @@ extern int ray_pnidle; /* number of idle processes */ typedef struct { /* rendering parameter holder */ int do_irrad; + int rand_samp; double dstrsrc; double shadthresh; double shadcert; @@ -202,7 +205,7 @@ extern int rayshade(RAY *r, int mod); extern void rayparticipate(RAY *r); extern void raytexture(RAY *r, OBJECT mod); extern int raymixture(RAY *r, OBJECT fore, OBJECT back, double coef); -extern void raycontrib(COLOR rc, const RAY *r, int flags); +extern void raycontrib(double rc[3], const RAY *r, int flags); extern double raydist(const RAY *r, int flags); extern double raynormal(FVECT norm, RAY *r); extern void newrayxf(RAY *r);