X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=model_brush.h;h=0c07048971f24701598428eb78a678dd7923148e;hb=405615a2dfc40a4cdb151467c37e87cac13f333e;hp=d417c62d0ad8048c231d927fa685c988d56f580a;hpb=076e22aeceb449c0e76a85fca00c5593e683725d;p=xonotic%2Fdarkplaces.git diff --git a/model_brush.h b/model_brush.h index d417c62d..0c070489 100644 --- a/model_brush.h +++ b/model_brush.h @@ -48,8 +48,15 @@ mvertex_t; // plane_t structure typedef struct mplane_s { - vec3_t normal; - float dist; + union + { + struct + { + vec3_t normal; + vec_t dist; + }; + vec4_t normal_and_dist; + }; // for texture axis selection and fast side tests int type; // set by PlaneClassify() int signbits; // set by PlaneClassify() @@ -120,6 +127,8 @@ mplane_t; #define MATERIALFLAG_NORTLIGHT 134217728 // alphagen vertex #define MATERIALFLAG_ALPHAGEN_VERTEX 268435456 +// use occlusion buffer for corona +#define MATERIALFLAG_OCCLUDE 536870912 // 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