51 |
|
int ndims = 0; /* number of sampling dimensions */ |
52 |
|
int samplendx; /* sample index number */ |
53 |
|
|
54 |
– |
//extern void ambnotify(); |
54 |
|
void (*addobjnotify[])() = {ambnotify, NULL}; |
55 |
|
|
56 |
|
VIEW ourview = STDVIEW; /* view parameters */ |
118 |
|
|
119 |
|
static VIEW lastview; /* the previous view input */ |
120 |
|
|
122 |
– |
//extern char *mktemp(); /* XXX should be in stdlib.h or unistd.h */ |
123 |
– |
|
124 |
– |
//double pixvalue(); |
125 |
– |
|
121 |
|
static void report(int); |
122 |
|
static int nextview(FILE *fp); |
123 |
|
static void render(char *zfile, char *oldfile); |
696 |
|
if (dblur > FTINY && vdist > FTINY) { |
697 |
|
double vc, dfh, dfv; |
698 |
|
/* square/circle conv. */ |
699 |
< |
dfh = vc = frandom(); |
700 |
< |
dfv = frandom(); |
699 |
> |
dfh = vc = 1. - 2.*frandom(); |
700 |
> |
dfv = 1. - 2.*frandom(); |
701 |
|
dfh *= .5*dblur*sqrt(1. - .5*dfv*dfv); |
702 |
|
dfv *= .5*dblur*sqrt(1. - .5*vc*vc); |
703 |
|
if (ourview.type == VT_PER || ourview.type == VT_PAR) { |