// TODO: support these features more directly
#define Q3TEXTUREFLAG_TWOSIDED 1
#define Q3TEXTUREFLAG_NOPICMIP 16
+#define Q3TEXTUREFLAG_POLYGONOFFSET 32
#define Q3PATHLENGTH 64
#define TEXTURE_MAXFRAMES 64
// current material flags (updated each bmodel render)
int currentmaterialflags;
+ // current PolygonOffset values for rendering this material
+ float currentpolygonfactor;
+ float currentpolygonoffset;
+ float basepolygonfactor;
+ float basepolygonoffset;
+
// textures to use when rendering this material
skinframe_t *currentskinframe;
int numskinframes;
rtexture_t *backgroundglosstexture;
float specularscale;
float specularpower;
+ // color tint (colormod * currentalpha) used for rtlighting this material
+ float dlightcolor[3];
// from q3 shaders
int customblendfunc[2];
msurface_lightmapinfo_t *data_surfaces_lightmapinfo;
// all surfaces belong to this mesh
surfmesh_t surfmesh;
+ // data type of model
+ const char *modeldatatypestring;
// draw the model's sky polygons (only used by brush models)
void(*DrawSky)(struct entity_render_s *ent);
// draw the model using lightmap/dlight shading