]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - model_brush.c
Support alpha textures in Quake if the name starts with '{'.
[xonotic/darkplaces.git] / model_brush.c
index ce195bd2f9078a3c62f2e193346e20b121e2220f..2761d7d670d38b7d2f6e7e559789b5e80f9ea65b 100644 (file)
@@ -1880,6 +1880,10 @@ static void Mod_Q1BSP_LoadTextures(sizebuf_t *sb)
                        if (tx->skinframes[0] && tx->skinframes[0]->hasalpha)
                                tx->basematerialflags |= MATERIALFLAG_ALPHA | MATERIALFLAG_BLENDED | MATERIALFLAG_NOSHADOW;
                }
+               else if (tx->name[0] == '{') // fence textures
+               {
+                       tx->basematerialflags |= MATERIALFLAG_ALPHATEST | MATERIALFLAG_NOSHADOW;
+               }
                else if (!strncmp(tx->name, "mirror", 6)) // Tenebrae
                {
                        // replace the texture with black