int ofs_end; // end of file
} md2_t;
-// LordHavoc: Q1 and Q2 models are converted to the same internal format
-#define ALIASTYPE_MDLMD2 1
+// LordHavoc: mdl, md2 and md3 models are converted to the same internal format
+#define ALIASTYPE_ALIAS 1
#define ALIASTYPE_ZYM 2
-extern void Mod_LoadAliasModel (struct model_s *mod, void *buffer);
+extern void Mod_LoadQ1AliasModel (struct model_s *mod, void *buffer);
extern void Mod_LoadQ2AliasModel (struct model_s *mod, void *buffer);
+extern void Mod_LoadQ3AliasModel (struct model_s *mod, void *buffer);
extern void Mod_AliasInit(void);
}
aliasvertex_t;
-// this layer is fog
+// this layer is fog (completely specialized behavior)
#define ALIASLAYER_FOG 1
// alpha blending
#define ALIASLAYER_ALPHA 2
// apply specular lighting
#define ALIASLAYER_SPECULAR 16
// tint with pants color
-#define ALIASLAYER_COLORMAP_DIFFUSE_PANTS 32
+#define ALIASLAYER_COLORMAP_PANTS 32
// tint with shirt color
-#define ALIASLAYER_COLORMAP_DIFFUSE_SHIRT 64
+#define ALIASLAYER_COLORMAP_SHIRT 64
+// don't draw this layer if colormap is not used
+#define ALIASLAYER_NODRAW_IF_NOTCOLORMAPPED 128
// don't draw this layer if colormap is used
-#define ALIASLAYER_COLORMAP_NODRAW 128
-// only draw this layer if colormap is used
-#define ALIASLAYER_COLORMAP_DRAW 256
-// don't draw this layer for realtime lighting passes
-#define ALIASLAYER_REALTIME_NODRAW 512
-// only draw this layer for realtime lighting passes
-#define ALIASLAYER_REALTIME_DRAW 1024
+#define ALIASLAYER_NODRAW_IF_COLORMAPPED 256
+// draw this layer for realtime lighting passes, otherwise don't
+#define ALIASLAYER_DRAW_PER_LIGHT 512
typedef struct aliaslayer_s
{