71 |
|
#define getBSDF_outvec(v,b,o) (*(b)->ob_vec)(v,o,(b)->ob_priv) |
72 |
|
#define getBSDF_outndx(b,v) (*(b)->ob_ndx)(v,(b)->ob_priv) |
73 |
|
#define getBSDF_outohm(b,o) (*(b)->ob_ohm)(o,(b)->ob_priv) |
74 |
< |
#define BSDF_visible(b,i,o) (b)->bsdf[(o)*(b)->ninc + (i)] |
74 |
> |
#define BSDF_value(b,i,o) (b)->bsdf[(o)*(b)->ninc + (i)] |
75 |
|
|
76 |
|
extern struct BSDF_data *load_BSDF(char *fname); |
77 |
|
extern void free_BSDF(struct BSDF_data *b); |
96 |
|
extern void rayclean(void); |
97 |
|
|
98 |
|
extern void flatdir(FVECT dv, double alt, double azi); |
99 |
+ |
extern int flatindex(FVECT dv, int nalt, int nazi); |
100 |
|
|
101 |
|
extern int my_default(OBJREC *, struct illum_args *, char *); |
102 |
|
extern int my_face(OBJREC *, struct illum_args *, char *); |
105 |
|
|
106 |
|
extern COLORV * distarr; /* distribution array */ |
107 |
|
extern int distsiz; |
108 |
+ |
extern COLORV * direct_discount; /* amount to take off direct */ |
109 |
|
|
110 |
|
extern char *progname; |
111 |
|
|