30 |
|
#define MAT_MIN (OBJ_MIN+OBJ_CNT) |
31 |
|
#define MAT_LIGHT (MAT_MIN+0) /* primary light source */ |
32 |
|
#define MAT_ILLUM (MAT_MIN+1) /* secondary light source */ |
33 |
< |
#define MAT_GLOW (MAT_MIN+2) /* emmissive non-source */ |
34 |
< |
#define MAT_PLASTIC (MAT_MIN+3) /* plastic surface */ |
35 |
< |
#define MAT_METAL (MAT_MIN+4) /* metal surface */ |
36 |
< |
#define MAT_TRANS (MAT_MIN+5) /* translucent material */ |
37 |
< |
#define MAT_DIELECTRIC (MAT_MIN+6) /* dielectric material */ |
38 |
< |
#define MAT_INTERFACE (MAT_MIN+7) /* dielectric interface */ |
39 |
< |
#define MAT_GLASS (MAT_MIN+8) /* thin glass surface */ |
40 |
< |
#define MAT_CLIP (MAT_MIN+9) /* clipping surface */ |
41 |
< |
#define MAT_CNT 10 |
33 |
> |
#define MAT_GLOW (MAT_MIN+2) /* proximity light source */ |
34 |
> |
#define MAT_SPOT (MAT_MIN+3) /* spot light source */ |
35 |
> |
#define MAT_PLASTIC (MAT_MIN+4) /* plastic surface */ |
36 |
> |
#define MAT_METAL (MAT_MIN+5) /* metal surface */ |
37 |
> |
#define MAT_TRANS (MAT_MIN+6) /* translucent material */ |
38 |
> |
#define MAT_DIELECTRIC (MAT_MIN+7) /* dielectric material */ |
39 |
> |
#define MAT_INTERFACE (MAT_MIN+8) /* dielectric interface */ |
40 |
> |
#define MAT_GLASS (MAT_MIN+9) /* thin glass surface */ |
41 |
> |
#define MAT_CLIP (MAT_MIN+10) /* clipping surface */ |
42 |
> |
#define MAT_CNT 11 |
43 |
|
/* textures and patterns */ |
44 |
|
#define TP_MIN (MAT_MIN+MAT_CNT) |
45 |
|
#define TEX_FUNC (TP_MIN+0) /* surface texture function */ |
60 |
|
#define NUMOTYPE (OBJ_CNT+MAT_CNT+TP_CNT) |
61 |
|
|
62 |
|
#define issurface(t) ((t) >= OBJ_MIN && (t) < OBJ_MIN+OBJ_CNT) |
63 |
+ |
#define isvolume(t) ((t) == OBJ_INSTANCE) |
64 |
|
#define ismodifier(t) ((t) >= MOD_MIN && (t) < MOD_MIN+MOD_CNT) |
65 |
|
#define ismaterial(t) ((t) >= MAT_MIN && (t) < MAT_MIN+MAT_CNT) |
66 |
|
#define istexture(t) ((t) >= TP_MIN && (t) < TP_MIN+TP_CNT) |
94 |
|
{ "light", m_light }, \ |
95 |
|
{ "illum", m_light }, \ |
96 |
|
{ "glow", m_light }, \ |
97 |
+ |
{ "spotlight", m_light }, \ |
98 |
|
{ "plastic", m_normal }, \ |
99 |
|
{ "metal", m_normal }, \ |
100 |
|
{ "trans", m_normal }, \ |