7 |
|
|
8 |
|
#include "ray.h" |
9 |
|
#include "otypes.h" |
10 |
– |
#include "bsdf.h" |
10 |
|
#include "random.h" |
11 |
|
|
12 |
|
#ifdef __cplusplus |
20 |
|
|
21 |
|
struct illum_args { |
22 |
|
int flags; /* flags from list above */ |
24 |
– |
UpDir udir; /* up direction */ |
25 |
– |
double thick; /* object thickness */ |
23 |
|
char matname[MAXSTR]; /* illum material name */ |
24 |
|
char datafile[MAXSTR]; /* distribution data file name */ |
25 |
|
int dfnum; /* data file number */ |
26 |
|
char altmat[MAXSTR]; /* alternate material name */ |
27 |
|
int sampdens; /* point sample density */ |
28 |
|
int nsamps; /* # of samples in each direction */ |
32 |
– |
struct BSDF_data |
33 |
– |
*sd; /* scattering data (if set) */ |
29 |
|
float minbrt; /* minimum average brightness */ |
30 |
|
COLOR col; /* computed average color */ |
31 |
|
}; /* illum options */ |
32 |
|
|
38 |
– |
extern void redistribute(struct BSDF_data *b, int nalt, int nazi, |
39 |
– |
FVECT u, FVECT v, FVECT w, MAT4 xm); |
40 |
– |
|
33 |
|
extern void printobj(char *mod, OBJREC *obj); |
34 |
|
extern int average(struct illum_args *il, COLORV *da, int n); |
35 |
|
extern void flatout(struct illum_args *il, COLORV *da, int n, int m, |
45 |
|
extern void flatdir(FVECT dv, double alt, double azi); |
46 |
|
extern int flatindex(FVECT dv, int nalt, int nazi); |
47 |
|
|
56 |
– |
extern int printgeom(struct BSDF_data *sd, char *xfrot, |
57 |
– |
FVECT ctr, double s1, double s2); |
58 |
– |
|
48 |
|
extern int my_default(OBJREC *, struct illum_args *, char *); |
49 |
|
extern int my_face(OBJREC *, struct illum_args *, char *); |
50 |
|
extern int my_sphere(OBJREC *, struct illum_args *, char *); |
52 |
|
|
53 |
|
extern COLORV * distarr; /* distribution array */ |
54 |
|
extern int distsiz; |
66 |
– |
extern COLORV * direct_discount; /* amount to take off direct */ |
55 |
|
|
56 |
|
extern char *progname; |
57 |
|
|