9 |
|
extern "C" { |
10 |
|
#endif |
11 |
|
|
12 |
< |
/* flag for materials to ignore during irradiance comp. */ |
13 |
< |
#define T_IRR_IGN T_SP1 |
12 |
> |
/* flag for nominally transparent materials */ |
13 |
> |
#define T_TRANSP T_SP1 |
14 |
|
|
15 |
|
/* flag for completely opaque materials */ |
16 |
|
#define T_OPAQUE T_SP2 |
17 |
|
|
18 |
< |
#define irr_ignore(t) (ofun[t].flags & T_IRR_IGN) |
18 |
> |
#define istransp(t) (ofun[t].flags & T_TRANSP) |
19 |
|
|
20 |
+ |
#define isopaque(t) (ofun[t].flags & T_OPAQUE) |
21 |
+ |
|
22 |
+ |
/* test if we have a BSDF proxy surface */ |
23 |
+ |
#define isBSDFproxy(m) ((m)->otype == MAT_BSDF && (m)->oargs.nsargs && \ |
24 |
+ |
strcmp((m)->oargs.sarg[0], "0")) |
25 |
+ |
|
26 |
+ |
/* defined in initotypes.c */ |
27 |
+ |
extern OBJREC *findmaterial(OBJREC *o); |
28 |
|
|
29 |
|
#ifdef __cplusplus |
30 |
|
} |