X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=model_brush.h;h=40b5e53c9f3d8fb22de91d4a512a1466752423db;hb=c3de890275f4840c3f4edf9a5ab047b7dd9b2a37;hp=bf44b585eec0432d6431ec7dfcf635ce02076044;hpb=27907bd5780497d603f115738cfcd68b1da3d17f;p=xonotic%2Fdarkplaces.git diff --git a/model_brush.h b/model_brush.h index bf44b585..40b5e53c 100644 --- a/model_brush.h +++ b/model_brush.h @@ -86,6 +86,13 @@ mplane_t; #define MATERIALFLAG_NODRAW 512 // probably used only on q1bsp water #define MATERIALFLAG_LIGHTBOTHSIDES 1024 +// use alpha test on this material +#define MATERIALFLAG_ALPHATEST 2048 +// treat this material as a blended transparency (as opposed to an alpha test +// transparency), this causes special fog behavior, and disables glDepthMask +#define MATERIALFLAG_BLENDED 4096 +// render using a custom blendfunc +#define MATERIALFLAG_CUSTOMBLEND 8192 typedef struct medge_s { @@ -174,43 +181,6 @@ typedef struct svbspmesh_s } svbspmesh_t; -typedef struct mlight_s -{ - // location of light - vec3_t origin; - // distance attenuation scale (smaller is a larger light) - float falloff; - // color and brightness combined - vec3_t light; - // brightness bias, used for limiting radius without a hard edge - float subtract; - // spotlight direction - vec3_t spotdir; - // cosine of spotlight cone angle (or 0 if not a spotlight) - float spotcone; - // distance bias (larger value is softer and darker) - float distbias; - // light style controlling this light - int style; - // maximum extent of the light for shading purposes - float lightradius; - // maximum extent of the light for culling purposes - float cullradius; - float cullradius2; - /* - // surfaces this shines on - int numsurfaces; - msurface_t **surfaces; - // lit area - vec3_t mins, maxs; - // precomputed shadow volume meshs - //svbspmesh_t *shadowvolume; - //vec3_t shadowvolumemins, shadowvolumemaxs; - shadowmesh_t *shadowvolume; - */ -} -mlight_t; - // Q2 bsp stuff #define Q2BSPVERSION 38 @@ -661,14 +631,12 @@ q3dpvs_t; #define Q3SURFACEPARM_WATER 33554432 #define Q3SURFACEPARM_POINTLIGHT 67108864 -// various flags from shaders +// various flags from shaders, used for special effects not otherwise classified #define Q3TEXTUREFLAG_TWOSIDED 1 -#define Q3TEXTUREFLAG_ADDITIVE 2 -#define Q3TEXTUREFLAG_NOMIPMAPS 4 -#define Q3TEXTUREFLAG_NOPICMIP 8 -#define Q3TEXTUREFLAG_AUTOSPRITE 16 -#define Q3TEXTUREFLAG_AUTOSPRITE2 32 -#define Q3TEXTUREFLAG_ALPHATEST 64 +#define Q3TEXTUREFLAG_AUTOSPRITE 2 +#define Q3TEXTUREFLAG_AUTOSPRITE2 4 +#define Q3TEXTUREFLAG_ALPHATEST 8 +#define Q3TEXTUREFLAG_NOPICMIP 16 typedef struct q3mbrush_s {