From fbcbb5562bc7e507a8cd28eab916b9f368427202 Mon Sep 17 00:00:00 2001 From: havoc Date: Mon, 24 Jan 2011 12:34:27 +0000 Subject: [PATCH] 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 --- gl_rmain.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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++; } -- 2.39.2