From: divverent Date: Sat, 6 Dec 2008 20:17:40 +0000 (+0000) Subject: brighten up the averaged texture value by factor 2 to make it look right X-Git-Tag: xonotic-v0.1.0preview~2021 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=0052176c31d28b057c6f0d32042fc924ee7b8107;p=xonotic%2Fdarkplaces.git brighten up the averaged texture value by factor 2 to make it look right git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8569 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/gl_rmain.c b/gl_rmain.c index e47f2bda..be2c8d4e 100644 --- a/gl_rmain.c +++ b/gl_rmain.c @@ -6534,6 +6534,11 @@ static void R_ProcessTextureSurfaceList(int texturenumsurfaces, msurface_t **tex c[3] = 1; } + // brighten it up (as texture value 127 means "unlit") + c[0] *= 2; + c[1] *= 2; + c[2] *= 2; + if (rsurface.texture->currentskinframe->pants || rsurface.texture->currentskinframe->shirt) { c[0] = rsurface.colormap_pantscolor[0] * 0.3 + rsurface.colormap_shirtcolor[0] * 0.7;