X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=model_brush.h;h=0463d74d1eedc3a8fe65f79ff5143f250b77dda5;hb=c0d54f21bcaba56302f5e9475b8182056f4841c0;hp=0c0f0e56847f1566eaec2dce6a9f8ae48a5f8148;hpb=e7222a7d7b424087ddd359ded4554735f8da19fb;p=xonotic%2Fdarkplaces.git diff --git a/model_brush.h b/model_brush.h index 0c0f0e56..0463d74d 100644 --- a/model_brush.h +++ b/model_brush.h @@ -51,8 +51,8 @@ typedef struct mplane_s vec3_t normal; float dist; // for texture axis selection and fast side tests - int type; - int signbits; + int type; // set by PlaneClassify() + int signbits; // set by PlaneClassify() } mplane_t; @@ -108,8 +108,14 @@ mplane_t; #define MATERIALFLAG_MODELLIGHT 4194304 // add directional model lighting to this material (q3bsp lightgrid only) #define MATERIALFLAG_MODELLIGHT_DIRECTIONAL 8388608 +// causes RSurf_GetCurrentTexture to leave alone certain fields +#define MATERIALFLAG_CUSTOMSURFACE 16777216 +// causes MATERIALFLAG_BLENDED to render a depth pass before rendering, hiding backfaces and other hidden geometry +#define MATERIALFLAG_TRANSDEPTH 33554432 // combined mask of all attributes that require depth sorted rendering #define MATERIALFLAGMASK_DEPTHSORTED (MATERIALFLAG_BLENDED | MATERIALFLAG_NODEPTHTEST) +// combined mask of all attributes that cause some sort of transparency +#define MATERIALFLAGMASK_TRANSLUCENT (MATERIALFLAG_WATERALPHA | MATERIALFLAG_SKY | MATERIALFLAG_NODRAW | MATERIALFLAG_ALPHATEST | MATERIALFLAG_BLENDED | MATERIALFLAG_WATERSHADER | MATERIALFLAG_REFRACTION) typedef struct medge_s {