]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
r_showtris is now a float cvar which controls intensity, rather than just a flag
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 4 Mar 2004 01:27:46 +0000 (01:27 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 4 Mar 2004 01:27:46 +0000 (01:27 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@3962 d7cf8633-e32d-0410-b094-e92efae38249

gl_backend.c

index f4ccc39f4f7d6d8d0d1c8e847eead00014912613..c4d6228498d1bbdcc0a71ecc8cfc8440c8efed67 100644 (file)
@@ -616,7 +616,7 @@ void GL_ShowTrisColor(float cr, float cg, float cb, float ca)
        if (!r_showtrispass)
                return;
        r_showtrispass = false;
-       GL_Color(cr,cg,cb,ca);
+       GL_Color(cr * r_showtris.value, cg * r_showtris.value, cb * r_showtris.value, ca);
        r_showtrispass = true;
 }
 
@@ -1249,7 +1249,7 @@ showtris:
 
        if (r_showtrispass)
                r_showtrispass = false;
-       else if (r_showtris.integer)
+       else if (r_showtris.value > 0)
        {
                rmeshstate_t m;
                GL_BlendFunc(GL_ONE, GL_ONE);