]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
fog table now at developer >= 100
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 25 Dec 2007 08:58:02 +0000 (08:58 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 25 Dec 2007 08:58:02 +0000 (08:58 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7862 d7cf8633-e32d-0410-b094-e92efae38249

gl_rmain.c

index aaa63242dfa860511c49776535177a83a468114a..193517134c181d4b064bd247ec42783c853d6cb5 100644 (file)
@@ -410,15 +410,18 @@ static void R_BuildFogTexture(void)
        for (x = 0;x < FOGMASKTABLEWIDTH;x++)
        {
                d = (x * r - r_refdef.fogmasktable_start);
-               Con_Printf("%f ", d);
+               if(developer.integer >= 100)
+                       Con_Printf("%f ", d);
                d = max(0, d);
                if (r_fog_exp2.integer)
                        alpha = exp(-r_refdef.fogmasktable_density * r_refdef.fogmasktable_density * 0.0001 * d * d);
                else
                        alpha = exp(-r_refdef.fogmasktable_density * 0.004 * d);
-               Con_Printf(" : %f ", alpha);
+               if(developer.integer >= 100)
+                       Con_Printf(" : %f ", alpha);
                alpha = 1 - (1 - alpha) * r_refdef.fogmasktable_alpha;
-               Con_Printf(" = %f\n", alpha);
+               if(developer.integer >= 100)
+                       Con_Printf(" = %f\n", alpha);
                r_refdef.fogmasktable[x] = bound(0, alpha, 1);
        }