From: havoc Date: Mon, 24 Jan 2011 12:34:27 +0000 (+0000) Subject: change q1bsp lightmap to vertex color conversion to scale colors X-Git-Tag: xonotic-v0.5.0~438^2~104 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=fbcbb5562bc7e507a8cd28eab916b9f368427202;p=xonotic%2Fdarkplaces.git change q1bsp lightmap to vertex color conversion to scale colors correctly git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10737 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/gl_rmain.c b/gl_rmain.c index 9a0e7180..72cc2624 100644 --- a/gl_rmain.c +++ b/gl_rmain.c @@ -11909,9 +11909,9 @@ void RSurf_PrepareVerticesForBatch(int batchneed, int texturenumsurfaces, const } } } - c[0] >>= 15; - c[1] >>= 15; - c[2] >>= 15; + c[0] >>= 7; + c[1] >>= 7; + c[2] >>= 7; Vector4Set(rsurface.batchlightmapcolor4f + 4*numvertices, min(c[0], 255) * (1.0f / 255.0f), min(c[1], 255) * (1.0f / 255.0f), min(c[2], 255) * (1.0f / 255.0f), 1); numvertices++; }