X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=model_brush.h;h=0463d74d1eedc3a8fe65f79ff5143f250b77dda5;hb=f21de6cab13211791317a66e446b0b2c0810892d;hp=3e90e25304ca614f8934cfee6ed5a50b9ba52a4e;hpb=8b4de3bd8359370109160ad06047219d42c6836a;p=xonotic%2Fdarkplaces.git diff --git a/model_brush.h b/model_brush.h index 3e90e253..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,6 +108,10 @@ 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