]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
fix lack of specular on q1 mdl, and a possible case where it would not
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 20 Dec 2009 06:23:28 +0000 (06:23 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 20 Dec 2009 06:23:28 +0000 (06:23 +0000)
have specular on q1 bsp

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9593 d7cf8633-e32d-0410-b094-e92efae38249

model_alias.c
model_brush.c

index ed4abbf015ffc7dbbda5b68c7bde8201cb581ede..f6cae93252a8816885e4031105d1e315110a4bdd 100644 (file)
@@ -900,6 +900,8 @@ static void Mod_BuildAliasSkinFromSkinFrame(texture_t *texture, skinframe_t *ski
        if (texture->currentskinframe->hasalpha)
                texture->basematerialflags |= MATERIALFLAG_ALPHA | MATERIALFLAG_BLENDED | MATERIALFLAG_NOSHADOW;
        texture->currentmaterialflags = texture->basematerialflags;
+       texture->specularscalemod = 1;
+       texture->specularpowermod = 1;
 }
 
 static void Mod_BuildAliasSkinsFromSkinFiles(texture_t *skin, skinfile_t *skinfile, const char *meshname, const char *shadername)
index 084a8fb711036392ce788383d62d4bcfdfd35738..f58d7a944b22bdf113c35c8eb0292297715d140b 100644 (file)
@@ -1459,6 +1459,8 @@ static void Mod_Q1BSP_LoadTextures(lump_t *l)
                tx->reflectfactor = 1;
                Vector4Set(tx->reflectcolor4f, 1, 1, 1, 1);
                tx->r_water_wateralpha = 1;
+               tx->specularscalemod = 1;
+               tx->specularpowermod = 1;
        }
 
        if (!m)