9 |
|
|
10 |
|
#include <sys/types.h> |
11 |
|
|
12 |
< |
#ifndef NON_POSIX |
13 |
< |
#ifdef BSD |
14 |
< |
#include <sys/time.h> |
15 |
< |
#include <sys/resource.h> |
12 |
> |
#include "platform.h" |
13 |
> |
#ifdef NON_POSIX |
14 |
> |
#ifdef MINGW |
15 |
> |
#include <sys/time.h> |
16 |
> |
#endif |
17 |
|
#else |
18 |
< |
#include <sys/times.h> |
19 |
< |
#include <unistd.h> |
18 |
> |
#ifdef BSD |
19 |
> |
#include <sys/time.h> |
20 |
> |
#include <sys/resource.h> |
21 |
> |
#else |
22 |
> |
#include <sys/times.h> |
23 |
> |
#include <unistd.h> |
24 |
> |
#endif |
25 |
|
#endif |
20 |
– |
#endif |
26 |
|
|
27 |
|
#include <time.h> |
28 |
|
#include <signal.h> |
29 |
|
|
25 |
– |
#include "platform.h" |
30 |
|
#include "ray.h" |
31 |
|
#include "paths.h" |
32 |
|
#include "ambient.h" |
681 |
|
return(0.0); |
682 |
|
} |
683 |
|
vdist = ourview.vdist; |
684 |
< |
|
685 |
< |
if (rand_samp) /* set pixel index */ |
682 |
< |
samplendx = random(); |
683 |
< |
else |
684 |
< |
samplendx = pixnumber(x,y,hres,vres); |
685 |
< |
|
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); |