]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - model_alias.h
corrected comment again, indicating that the offset for polygon 3 is in the bottom...
[xonotic/darkplaces.git] / model_alias.h
index 40526831d465493ee46b1ea17b2c21879e6e453a..7e5a88c44469e229f61ea169f13111cdbc99ea80 100644 (file)
@@ -126,12 +126,13 @@ typedef struct
        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);
 
@@ -238,7 +239,7 @@ typedef struct aliasvertex_s
 }
 aliasvertex_t;
 
-// this layer is fog
+// this layer is fog (completely specialized behavior)
 #define ALIASLAYER_FOG 1
 // alpha blending
 #define ALIASLAYER_ALPHA 2
@@ -249,17 +250,15 @@ aliasvertex_t;
 // 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
 {