35 |
|
struct ambtree *kid; /* 8 child nodes */ |
36 |
|
} AMBTREE; /* ambient octree */ |
37 |
|
|
38 |
– |
typedef struct { |
39 |
– |
COLOR v; /* division sum (partial) */ |
40 |
– |
float r; /* 1/distance sum */ |
41 |
– |
float k; /* variance for this division */ |
42 |
– |
int n; /* number of subsamples */ |
43 |
– |
unsigned short t, p; /* theta, phi indices */ |
44 |
– |
} AMBSAMP; /* ambient sample division */ |
45 |
– |
|
46 |
– |
typedef struct { |
47 |
– |
FVECT ux, uy, uz; /* x, y and z axis directions */ |
48 |
– |
COLOR acoef; /* division contribution coefficient */ |
49 |
– |
int ns; /* number of super-samples */ |
50 |
– |
int nt, np; /* number of theta and phi directions */ |
51 |
– |
} AMBHEMI; /* ambient sample hemisphere */ |
52 |
– |
|
38 |
|
extern double maxarad; /* maximum ambient radius */ |
39 |
|
extern double minarad; /* minimum ambient radius */ |
40 |
|
|