]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
no, this way of colormapping looks best after all... sorry
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 7 Dec 2008 18:28:33 +0000 (18:28 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 7 Dec 2008 18:28:33 +0000 (18:28 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8580 d7cf8633-e32d-0410-b094-e92efae38249

gl_rmain.c

index 4797e405e1fb8dee4432dd9426dd0f8473b1ff2b..03beaffe470fa3224954d56b51c54b26a46af93f 100644 (file)
@@ -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.2 + rsurface.colormap_shirtcolor[0] * 0.3) * (c[0] + 1);
-               c[1] = (rsurface.colormap_pantscolor[1] * 0.2 + rsurface.colormap_shirtcolor[1] * 0.3) * (c[1] + 1);
-               c[2] = (rsurface.colormap_pantscolor[2] * 0.2 + rsurface.colormap_shirtcolor[2] * 0.3) * (c[2] + 1);
+               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);
        }
 
        // brighten it up (as texture value 127 means "unlit")