28 |
|
UDzpos=3 |
29 |
|
} UpDir; |
30 |
|
|
31 |
+ |
/* XXX need to add per-band data */ |
32 |
|
struct BSDF_data { |
33 |
|
double om_scale; /* maximum solid angle (sr/256) */ |
34 |
|
int ninc; /* number of incoming directions */ |
43 |
|
struct illum_args { |
44 |
|
int flags; /* flags from list above */ |
45 |
|
UpDir udir; /* up direction */ |
46 |
+ |
double thick; /* object thickness */ |
47 |
|
char matname[MAXSTR]; /* illum material name */ |
48 |
|
char datafile[MAXSTR]; /* distribution data file name */ |
49 |
|
int dfnum; /* data file number */ |
68 |
|
double rv, MAT4 xm); |
69 |
|
extern void r_BSDF_outvec(FVECT v, struct BSDF_data *b, int o, |
70 |
|
double rv, MAT4 xm); |
71 |
+ |
extern int getBSDF_xfm(MAT4 xm, FVECT nrm, UpDir ud); |
72 |
+ |
extern void redistribute(struct BSDF_data *b, int nalt, int nazi, |
73 |
+ |
FVECT u, FVECT v, FVECT w, MAT4 xm); |
74 |
|
|
75 |
|
extern void printobj(char *mod, OBJREC *obj); |
76 |
|
extern int average(struct illum_args *il, COLORV *da, int n); |
79 |
|
extern void illumout(struct illum_args *il, OBJREC *ob); |
80 |
|
extern void roundout(struct illum_args *il, COLORV *da, int n, int m); |
81 |
|
|
82 |
+ |
extern void newdist(int siz); |
83 |
+ |
extern int process_ray(RAY *r, int rv); |
84 |
+ |
extern void raysamp(int ndx, FVECT org, FVECT dir); |
85 |
+ |
extern void rayclean(void); |
86 |
+ |
|
87 |
|
extern int my_default(OBJREC *, struct illum_args *, char *); |
88 |
|
extern int my_face(OBJREC *, struct illum_args *, char *); |
89 |
|
extern int my_sphere(OBJREC *, struct illum_args *, char *); |
90 |
|
extern int my_ring(OBJREC *, struct illum_args *, char *); |
91 |
+ |
|
92 |
+ |
extern COLORV * distarr; /* distribution array */ |
93 |
+ |
extern int distsiz; |
94 |
|
|
95 |
|
extern char *progname; |
96 |
|
|