{
// check face type first
type = LittleLong(in->type);
- if (type != Q3FACETYPE_POLYGON
+ if (type != Q3FACETYPE_FLAT
&& type != Q3FACETYPE_PATCH
&& type != Q3FACETYPE_MESH
&& type != Q3FACETYPE_FLARE)
}
switch(type)
{
- case Q3FACETYPE_POLYGON:
+ case Q3FACETYPE_FLAT:
case Q3FACETYPE_MESH:
// no processing necessary
break;
out->num_firsttriangle = meshtriangles;
switch(type)
{
- case Q3FACETYPE_POLYGON:
+ case Q3FACETYPE_FLAT:
case Q3FACETYPE_MESH:
// no processing necessary, except for lightmap merging
for (j = 0;j < out->num_vertices;j++)
}
q3deffect_t;
-#define Q3FACETYPE_POLYGON 1 // common
+#define Q3FACETYPE_FLAT 1 // common
#define Q3FACETYPE_PATCH 2 // common
#define Q3FACETYPE_MESH 3 // common
#define Q3FACETYPE_FLARE 4 // rare (is this ever used?)
unknown;
struct
{
- // Q3FACETYPE_POLYGON
- // polygon is simply a convex polygon, renderable as a mesh
+ // Q3FACETYPE_FLAT
+ // mesh is a collection of triangles on a plane, renderable as a mesh (NOT a polygon)
float lightmap_origin[3];
float lightmap_vectors[2][3];
float normal[3];
int unused1[2];
}
- polygon;
+ flat;
struct
{
// Q3FACETYPE_PATCH