67 |
|
|
68 |
|
int do_irrad = 0; /* compute irradiance? */ |
69 |
|
|
70 |
+ |
int rand_samp = 0; /* pure Monte Carlo sampling? */ |
71 |
+ |
|
72 |
|
double dstrsrc = 0.0; /* square source distribution */ |
73 |
|
double shadthresh = .05; /* shadow threshold */ |
74 |
|
double shadcert = .5; /* shadow certainty */ |
677 |
|
return(0.0); |
678 |
|
} |
679 |
|
vdist = ourview.vdist; |
680 |
< |
|
681 |
< |
samplendx = pixnumber(x,y,hres,vres); /* set pixel index */ |
680 |
< |
|
680 |
> |
/* set pixel index */ |
681 |
> |
samplendx = pixnumber(x,y,hres,vres); |
682 |
|
/* optional motion blur */ |
683 |
|
if (lastview.type && mblur > FTINY && (lmax = viewray(lorg, ldir, |
684 |
|
&lastview, hpos, vpos)) >= -FTINY) { |
727 |
|
return(0.0); |
728 |
|
} |
729 |
|
|
730 |
< |
rayorigin(&thisray, NULL, PRIMARY, 1.0); |
730 |
> |
rayorigin(&thisray, PRIMARY, NULL, NULL); |
731 |
|
|
732 |
|
rayvalue(&thisray); /* trace ray */ |
733 |
|
|