From: divverent Date: Sun, 7 Dec 2008 18:32:33 +0000 (+0000) Subject: fix overbrightness :( X-Git-Tag: xonotic-v0.1.0preview~2009 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=480a93a016d60608d313c112a2d7e26b2ca96a23;p=xonotic%2Fdarkplaces.git fix overbrightness :( git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8581 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/gl_rmain.c b/gl_rmain.c index 03beaffe..db2e9da3 100644 --- a/gl_rmain.c +++ b/gl_rmain.c @@ -6458,9 +6458,9 @@ static void R_DrawTextureSurfaceList_ShowSurfaces3(int texturenumsurfaces, msurf if (rsurface.texture->currentskinframe->pants || rsurface.texture->currentskinframe->shirt) { - c[0] = (rsurface.colormap_pantscolor[0] * 0.3 + rsurface.colormap_shirtcolor[0] * 0.7); - c[1] = (rsurface.colormap_pantscolor[1] * 0.3 + rsurface.colormap_shirtcolor[1] * 0.7); - c[2] = (rsurface.colormap_pantscolor[2] * 0.3 + rsurface.colormap_shirtcolor[2] * 0.7); + c[0] = 0.5 * (rsurface.colormap_pantscolor[0] * 0.3 + rsurface.colormap_shirtcolor[0] * 0.7); + c[1] = 0.5 * (rsurface.colormap_pantscolor[1] * 0.3 + rsurface.colormap_shirtcolor[1] * 0.7); + c[2] = 0.5 * (rsurface.colormap_pantscolor[2] * 0.3 + rsurface.colormap_shirtcolor[2] * 0.7); } // brighten it up (as texture value 127 means "unlit")