]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
fixed specularscale calculation
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 30 Mar 2007 01:41:00 +0000 (01:41 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 30 Mar 2007 01:41:00 +0000 (01:41 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7022 d7cf8633-e32d-0410-b094-e92efae38249

r_shadow.c

index 7c219b686528d812f984052fd4c2f5d79c4c861b..76abca57c1c62423fa4827c3e693bcfe0328e3e9 100644 (file)
@@ -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;