14 |
|
#include <sys/time.h> |
15 |
|
#include <sys/resource.h> |
16 |
|
#else |
17 |
+ |
#ifndef MINGW |
18 |
|
#include <sys/times.h> |
19 |
+ |
#else |
20 |
+ |
#include <sys/time.h> |
21 |
+ |
#endif |
22 |
|
#include <unistd.h> |
23 |
|
#endif |
24 |
|
#endif |
71 |
|
|
72 |
|
int do_irrad = 0; /* compute irradiance? */ |
73 |
|
|
74 |
+ |
int rand_samp = 0; /* pure Monte Carlo sampling? */ |
75 |
+ |
|
76 |
|
double dstrsrc = 0.0; /* square source distribution */ |
77 |
|
double shadthresh = .05; /* shadow threshold */ |
78 |
|
double shadcert = .5; /* shadow certainty */ |
681 |
|
return(0.0); |
682 |
|
} |
683 |
|
vdist = ourview.vdist; |
684 |
< |
|
685 |
< |
samplendx = pixnumber(x,y,hres,vres); /* set pixel index */ |
680 |
< |
|
684 |
> |
/* set pixel index */ |
685 |
> |
samplendx = pixnumber(x,y,hres,vres); |
686 |
|
/* optional motion blur */ |
687 |
|
if (lastview.type && mblur > FTINY && (lmax = viewray(lorg, ldir, |
688 |
|
&lastview, hpos, vpos)) >= -FTINY) { |
714 |
|
} |
715 |
|
} else { /* non-standard view case */ |
716 |
|
double dfd = PI/4.*dblur*(.5 - frandom()); |
717 |
< |
if (ourview.type != VT_ANG) { |
717 |
> |
if (ourview.type != VT_ANG && ourview.type != VT_PLS) { |
718 |
|
if (ourview.type != VT_CYL) |
719 |
|
dfh /= sqrt(ourview.hn2); |
720 |
|
dfv /= sqrt(ourview.vn2); |
731 |
|
return(0.0); |
732 |
|
} |
733 |
|
|
734 |
< |
rayorigin(&thisray, NULL, PRIMARY, 1.0); |
734 |
> |
rayorigin(&thisray, PRIMARY, NULL, NULL); |
735 |
|
|
736 |
|
rayvalue(&thisray); /* trace ray */ |
737 |
|
|