]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - model_brush.h
detail texturing added (although with just one generated texture applied to everything)
[xonotic/darkplaces.git] / model_brush.h
index 30296c1b7114dc4adefec7d6c1120b16f7e8a313..05d810587e93b427459b0ffcb8523b64b8e963af 100644 (file)
@@ -70,6 +70,8 @@ typedef struct texture_s
        rtexture_t *glowtexture;
        // alpha texture (used for fogging), NULL if opaque
        rtexture_t *fogtexture;
+       // detail texture (usually not used if transparent)
+       rtexture_t *detailtexture;
 
        // total frames in sequence and alternate sequence
        int anim_total[2];
@@ -116,6 +118,8 @@ typedef struct surfvertex_s
        float st[2];
        // lightmap coordinates
        float uv[2];
+       // detail texture coordinates
+       float ab[2];
 }
 surfvertex_t;