From: havoc Date: Sun, 20 Dec 2009 06:23:28 +0000 (+0000) Subject: fix lack of specular on q1 mdl, and a possible case where it would not X-Git-Tag: xonotic-v0.1.0preview~1054 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=05d86cc7ccdeca1b339fa9291d487dcfbd8d27b9;p=xonotic%2Fdarkplaces.git fix lack of specular on q1 mdl, and a possible case where it would not have specular on q1 bsp git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9593 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/model_alias.c b/model_alias.c index ed4abbf0..f6cae932 100644 --- a/model_alias.c +++ b/model_alias.c @@ -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) diff --git a/model_brush.c b/model_brush.c index 084a8fb7..f58d7a94 100644 --- a/model_brush.c +++ b/model_brush.c @@ -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)