]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
brighten up the averaged texture value by factor 2 to make it look right
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 6 Dec 2008 20:17:40 +0000 (20:17 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 6 Dec 2008 20:17:40 +0000 (20:17 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8569 d7cf8633-e32d-0410-b094-e92efae38249

gl_rmain.c

index e47f2bda590b59288f4410babaf23324c1137a44..be2c8d4e57b44ebfb77b65a98c860e3d0398229b 100644 (file)
@@ -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;