From: havoc Date: Sat, 29 Nov 2003 05:30:13 +0000 (+0000) Subject: added a quick hack for nodraw support in q3bsp (I hope this is right) X-Git-Tag: xonotic-v0.1.0preview~6254 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=a0b3ed3c7ee72b6d320584e06262bd9bc40ceb4e;p=xonotic%2Fdarkplaces.git added a quick hack for nodraw support in q3bsp (I hope this is right) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@3666 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/model_brush.c b/model_brush.c index 4b473feb..a8b6cd53 100644 --- a/model_brush.c +++ b/model_brush.c @@ -3319,6 +3319,10 @@ static void Mod_Q3BSP_LoadTextures(lump_t *l) loadmodel->brushq3.data_textures = out; loadmodel->brushq3.num_textures = count; + // FIXME: do a quick parse of the shader files to see if any names match + // up and get their surfaceparms + + for (i = 0;i < count;i++, in++, out++) { out->number = i; @@ -3328,7 +3332,8 @@ static void Mod_Q3BSP_LoadTextures(lump_t *l) out->supercontents = Mod_Q3BSP_SuperContentsFromNativeContents(loadmodel, out->nativecontents); Mod_LoadSkinFrame(&out->skin, out->name, TEXF_MIPMAP | TEXF_ALPHA | TEXF_PRECACHE, false, true, true); out->renderflags = 0; - if (!strcmp(out->name, "caulk") || !strcmp(out->name, "common/caulk") || !strcmp(out->name, "textures/common/caulk")) + if (!strcmp(out->name, "caulk") || !strcmp(out->name, "common/caulk") || !strcmp(out->name, "textures/common/caulk") + || !strcmp(out->name, "nodraw") || !strcmp(out->name, "common/nodraw") || !strcmp(out->name, "textures/common/nodraw")) out->renderflags |= Q3MTEXTURERENDERFLAGS_NODRAW; if (!strncmp(out->name, "textures/skies/", 15)) out->renderflags |= Q3MTEXTURERENDERFLAGS_SKY;