From: divverent Date: Mon, 8 Dec 2008 06:43:07 +0000 (+0000) Subject: no idea why, but ambient needed halving in showsurfaces 3 X-Git-Tag: xonotic-v0.1.0preview~2006 X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fdarkplaces.git;a=commitdiff_plain;h=2d375b6482c51a1a42ecbf95c1798082b3aee9bd no idea why, but ambient needed halving in showsurfaces 3 git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8584 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/gl_rmain.c b/gl_rmain.c index 662a1c73..9ce70aa2 100644 --- a/gl_rmain.c +++ b/gl_rmain.c @@ -5851,9 +5851,9 @@ static void RSurf_DrawBatch_GL11_ApplyAmbient(int texturenumsurfaces, msurface_t const msurface_t *surface = texturesurfacelist[texturesurfaceindex]; for (i = 0, c = (rsurface.lightmapcolor4f + 4 * surface->num_firstvertex), c2 = (rsurface.array_color4f + 4 * surface->num_firstvertex);i < surface->num_vertices;i++, c += 4, c2 += 4) { - c2[0] = c[0] + r_refdef.scene.ambient / 64.0; - c2[1] = c[1] + r_refdef.scene.ambient / 64.0; - c2[2] = c[2] + r_refdef.scene.ambient / 64.0; + c2[0] = c[0] + r_refdef.scene.ambient / 128.0; + c2[1] = c[1] + r_refdef.scene.ambient / 128.0; + c2[2] = c[2] + r_refdef.scene.ambient / 128.0; c2[3] = c[3]; } }