44 |
|
#define MAT_LIGHT 27 /* primary light source */ |
45 |
|
#define MAT_ILLUM 28 /* secondary light source */ |
46 |
|
#define MAT_SPOT 29 /* spot light source */ |
47 |
< |
#define MAT_MIRROR 30 /* mirror (secondary source) */ |
48 |
< |
#define MAT_TFUNC 31 /* trans brdf function */ |
49 |
< |
#define MAT_BRTDF 32 /* brtd function */ |
50 |
< |
#define MAT_PDATA 33 /* plastic brdf data */ |
51 |
< |
#define MAT_MDATA 34 /* metal brdf data */ |
52 |
< |
#define MAT_TDATA 35 /* trans brdf data */ |
53 |
< |
#define PAT_CFUNC 36 /* color function */ |
54 |
< |
#define MAT_CLIP 37 /* clipping surface */ |
55 |
< |
#define PAT_CDATA 38 /* color data */ |
56 |
< |
#define PAT_CTEXT 39 /* colored text */ |
57 |
< |
#define TEX_DATA 40 /* surface texture data */ |
58 |
< |
#define MIX_FUNC 41 /* mixing function */ |
59 |
< |
#define MIX_DATA 42 /* mixing data */ |
60 |
< |
#define MIX_TEXT 43 /* mixing text */ |
61 |
< |
#define MAT_DIRECT1 44 /* unidirecting material */ |
62 |
< |
#define MAT_DIRECT2 45 /* bidirecting material */ |
47 |
> |
#define MAT_MIST 30 /* mist medium */ |
48 |
> |
#define MAT_MIRROR 31 /* mirror (secondary source) */ |
49 |
> |
#define MAT_TFUNC 32 /* trans brdf function */ |
50 |
> |
#define MAT_BRTDF 33 /* brtd function */ |
51 |
> |
#define MAT_PDATA 34 /* plastic brdf data */ |
52 |
> |
#define MAT_MDATA 35 /* metal brdf data */ |
53 |
> |
#define MAT_TDATA 36 /* trans brdf data */ |
54 |
> |
#define PAT_CFUNC 37 /* color function */ |
55 |
> |
#define MAT_CLIP 38 /* clipping surface */ |
56 |
> |
#define PAT_CDATA 39 /* color data */ |
57 |
> |
#define PAT_CTEXT 40 /* colored text */ |
58 |
> |
#define TEX_DATA 41 /* surface texture data */ |
59 |
> |
#define MIX_FUNC 42 /* mixing function */ |
60 |
> |
#define MIX_DATA 43 /* mixing data */ |
61 |
> |
#define MIX_TEXT 44 /* mixing text */ |
62 |
> |
#define MAT_DIRECT1 45 /* unidirecting material */ |
63 |
> |
#define MAT_DIRECT2 46 /* bidirecting material */ |
64 |
|
/* number of object types */ |
65 |
< |
#define NUMOTYPE 46 |
65 |
> |
#define NUMOTYPE 47 |
66 |
|
/* type flags */ |
67 |
|
#define T_S 01 /* surface (object) */ |
68 |
|
#define T_M 02 /* material */ |
92 |
|
#define hasdata(t) (ofun[t].flags & (T_D|T_I)) |
93 |
|
#define hasfunc(t) (ofun[t].flags & (T_F|T_D|T_I)) |
94 |
|
#define hastext(t) (ofun[t].flags & T_E) |
95 |
+ |
#define isflat(t) ((t)==OBJ_FACE || (t)==OBJ_RING) |
96 |
|
|
97 |
|
extern int o_default(); |
98 |
|
/* type list initialization */ |
126 |
|
{ "light", T_M|T_L, o_default }, \ |
127 |
|
{ "illum", T_M|T_L, o_default }, \ |
128 |
|
{ "spotlight", T_M|T_L, o_default }, \ |
129 |
+ |
{ "mist", T_M, o_default }, \ |
130 |
|
{ "mirror", T_M|T_LV, o_default }, \ |
131 |
|
{ "transfunc", T_M|T_F, o_default }, \ |
132 |
|
{ "BRTDfunc", T_M|T_F, o_default }, \ |