85 |
|
|
86 |
|
extern int do_irrad; /* compute irradiance? */ |
87 |
|
|
88 |
+ |
extern int rand_samp; /* pure Monte Carlo sampling? */ |
89 |
+ |
|
90 |
|
extern double dstrsrc; /* square source distribution */ |
91 |
|
extern double shadthresh; /* shadow threshold */ |
92 |
|
extern double shadcert; /* shadow testing certainty */ |
129 |
|
|
130 |
|
typedef struct { /* rendering parameter holder */ |
131 |
|
int do_irrad; |
132 |
+ |
int rand_samp; |
133 |
|
double dstrsrc; |
134 |
|
double shadthresh; |
135 |
|
double shadcert; |
205 |
|
extern void rayparticipate(RAY *r); |
206 |
|
extern void raytexture(RAY *r, OBJECT mod); |
207 |
|
extern int raymixture(RAY *r, OBJECT fore, OBJECT back, double coef); |
208 |
< |
extern void raycontrib(COLOR rc, const RAY *r, int flags); |
208 |
> |
extern void raycontrib(double rc[3], const RAY *r, int flags); |
209 |
|
extern double raydist(const RAY *r, int flags); |
210 |
|
extern double raynormal(FVECT norm, RAY *r); |
211 |
|
extern void newrayxf(RAY *r); |