]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - image.c
fixed some dynamic lighting bugs related to glowing self
[xonotic/darkplaces.git] / image.c
diff --git a/image.c b/image.c
index dce3b365915d375c7d3649f6544c77d676e4e3ff..0ce0886ad11365c0b2a027659847ddee307fd806 100644 (file)
--- a/image.c
+++ b/image.c
@@ -1296,7 +1296,7 @@ void Image_HeightmapToNormalmap(const unsigned char *inpixels, unsigned char *ou
        float iwidth, iheight, ibumpscale, n[3];
        iwidth = 1.0f / width;
        iheight = 1.0f / height;
-       ibumpscale = (255.0f * 3.0f) / (bumpscale * 16.0f);
+       ibumpscale = (255.0f * 3.0f) / (bumpscale * 8.0f);
        out = outpixels;
        for (y = 0;y < height;y++)
        {