From 842477a122f9fac18ce56e74c5a06b79ad9eae74 Mon Sep 17 00:00:00 2001 From: divverent Date: Tue, 25 Dec 2007 08:58:02 +0000 Subject: [PATCH] fog table now at developer >= 100 git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7862 d7cf8633-e32d-0410-b094-e92efae38249 --- gl_rmain.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/gl_rmain.c b/gl_rmain.c index aaa63242..19351713 100644 --- a/gl_rmain.c +++ b/gl_rmain.c @@ -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); } -- 2.39.2