33 |
|
b_vecf *ob_vec; /* get output vector from index */ |
34 |
|
b_ndxf *ob_ndx; /* get output index from vector */ |
35 |
|
b_ohmf *ob_ohm; /* get output proj. SA for index */ |
36 |
+ |
C_CHROMA *chroma; /* chromaticity data */ |
37 |
|
float bsdf[1]; /* scattering data (extends struct) */ |
38 |
|
} SDMat; |
39 |
|
|
83 |
|
extern ANGLE_BASIS abase_list[MAXABASES]; |
84 |
|
|
85 |
|
extern int nabases; /* current number of defined bases */ |
86 |
+ |
|
87 |
+ |
extern C_COLOR mtx_RGB_prim[3]; /* matrix RGB primaries */ |
88 |
+ |
extern float mtx_RGB_coef[3]; /* corresponding Y coefficients */ |
89 |
+ |
|
90 |
+ |
/* Get color or grayscale value for BSDF in the given directions */ |
91 |
+ |
extern int mBSDF_color(float coef[], const SDMat *b, int i, int o); |
92 |
|
|
93 |
|
/* Get vector for this angle basis index (front exiting) */ |
94 |
|
extern b_vecf fo_getvec; |