]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
only enable watershader on fullbright water
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 5 Oct 2004 17:52:06 +0000 (17:52 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 5 Oct 2004 17:52:06 +0000 (17:52 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4598 d7cf8633-e32d-0410-b094-e92efae38249

gl_rsurf.c

index a456e57dab2ac8b92cfb992872ce15c7ae781135..209acfc091d75b9c98db43ecc9c50fa2d6f0ade6 100644 (file)
@@ -832,7 +832,7 @@ static void RSurfShader_Transparent_Callback(const void *calldata1, int calldata
        base = fullbright ? 2.0f : r_ambient.value * (1.0f / 64.0f);
        if (surf->flags & SURF_DRAWTURB)
                base *= 0.5f;
-       if ((surf->flags & SURF_DRAWTURB) && gl_textureshader && r_watershader.value && !fogenabled)
+       if ((surf->flags & SURF_DRAWTURB) && gl_textureshader && r_watershader.value && !fogenabled && fullbright)
        {
                // NVIDIA Geforce3 distortion texture shader on water
                GL_Color(1, 1, 1, currentalpha);