From: havoc Date: Fri, 30 Mar 2007 01:41:00 +0000 (+0000) Subject: fixed specularscale calculation X-Git-Tag: xonotic-v0.1.0preview~3396 X-Git-Url: https://git.xonotic.org/?a=commitdiff_plain;h=8baf467594674231c6294e7be7a8800cdd083c08;p=xonotic%2Fdarkplaces.git fixed specularscale calculation git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7022 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/r_shadow.c b/r_shadow.c index 7c219b68..76abca57 100644 --- a/r_shadow.c +++ b/r_shadow.c @@ -2121,7 +2121,7 @@ void R_Shadow_RenderLighting(int firstvertex, int numvertices, int numtriangles, lightcolorbase[2] = r_shadow_rtlight->currentcolor[2] * rsurface_entity->colormod[2] * rsurface_texture->currentalpha; ambientscale = r_shadow_rtlight->ambientscale; diffusescale = r_shadow_rtlight->diffusescale; - specularscale = specularscale; + specularscale = r_shadow_rtlight->specularscale * rsurface_texture->specularscale; if (!r_shadow_usenormalmap.integer) { ambientscale += 1.0f * diffusescale;