mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-05-06 07:51:18 +00:00
diff noise reduction
This commit is contained in:
parent
0c16f56c23
commit
1b74d305a8
2 changed files with 11 additions and 13 deletions
|
@ -43,18 +43,20 @@
|
||||||
#include "QF/compat.h"
|
#include "QF/compat.h"
|
||||||
#include "QF/console.h"
|
#include "QF/console.h"
|
||||||
#include "QF/locs.h"
|
#include "QF/locs.h"
|
||||||
#include "QF/model.h"
|
#include "QF/mathlib.h"
|
||||||
#include "QF/qargs.h"
|
#include "QF/qargs.h"
|
||||||
|
#include "QF/skin.h"
|
||||||
|
#include "QF/sound.h"
|
||||||
#include "QF/sys.h"
|
#include "QF/sys.h"
|
||||||
|
#include "QF/vid.h"
|
||||||
|
|
||||||
#include "client.h"
|
#include "client.h"
|
||||||
#include "chase.h"
|
#include "chase.h"
|
||||||
#include "game.h"
|
#include "game.h"
|
||||||
#include "glquake.h"
|
#include "glquake.h"
|
||||||
#include "r_cvar.h"
|
#include "r_cvar.h"
|
||||||
#include "r_local.h"
|
|
||||||
#include "r_dynamic.h"
|
#include "r_dynamic.h"
|
||||||
//#include "render.h"
|
#include "r_local.h"
|
||||||
#include "view.h"
|
#include "view.h"
|
||||||
|
|
||||||
entity_t r_worldentity;
|
entity_t r_worldentity;
|
||||||
|
@ -64,10 +66,6 @@ qboolean r_cache_thrash; // compatability
|
||||||
vec3_t modelorg, r_entorigin;
|
vec3_t modelorg, r_entorigin;
|
||||||
entity_t *currententity;
|
entity_t *currententity;
|
||||||
|
|
||||||
int currenttexture = -1; // to avoid unnecessary texture sets
|
|
||||||
int cnttextures[2] = { -1, -1 }; // cached
|
|
||||||
|
|
||||||
|
|
||||||
int r_visframecount; // bumped when going to a new PVS
|
int r_visframecount; // bumped when going to a new PVS
|
||||||
int r_framecount; // used for dlight push checking
|
int r_framecount; // used for dlight push checking
|
||||||
|
|
||||||
|
@ -823,7 +821,7 @@ R_DrawEntitiesOnList (void)
|
||||||
if (cl_visedicts[i]->model->type != mod_brush)
|
if (cl_visedicts[i]->model->type != mod_brush)
|
||||||
continue;
|
continue;
|
||||||
currententity = cl_visedicts[i];
|
currententity = cl_visedicts[i];
|
||||||
modelalpha = 1.0;
|
modelalpha = 1.0;//currententity->alpha;
|
||||||
|
|
||||||
R_DrawBrushModel (currententity);
|
R_DrawBrushModel (currententity);
|
||||||
}
|
}
|
||||||
|
@ -832,7 +830,7 @@ R_DrawEntitiesOnList (void)
|
||||||
if (cl_visedicts[i]->model->type != mod_alias)
|
if (cl_visedicts[i]->model->type != mod_alias)
|
||||||
continue;
|
continue;
|
||||||
currententity = cl_visedicts[i];
|
currententity = cl_visedicts[i];
|
||||||
modelalpha = 1.0;
|
modelalpha = 1.0;//currententity->alpha;
|
||||||
|
|
||||||
if (currententity == &cl_entities[cl.viewentity])
|
if (currententity == &cl_entities[cl.viewentity])
|
||||||
currententity->angles[PITCH] *= 0.3;
|
currententity->angles[PITCH] *= 0.3;
|
||||||
|
@ -844,7 +842,7 @@ R_DrawEntitiesOnList (void)
|
||||||
if (cl_visedicts[i]->model->type != mod_sprite)
|
if (cl_visedicts[i]->model->type != mod_sprite)
|
||||||
continue;
|
continue;
|
||||||
currententity = cl_visedicts[i];
|
currententity = cl_visedicts[i];
|
||||||
modelalpha = 1.0;
|
modelalpha = 1.0;//currententity->alpha;
|
||||||
|
|
||||||
R_DrawSpriteModel (currententity);
|
R_DrawSpriteModel (currententity);
|
||||||
}
|
}
|
||||||
|
@ -861,7 +859,7 @@ R_DrawViewModel (void)
|
||||||
|| cl.stats[STAT_HEALTH] <= 0 || !currententity->model)
|
|| cl.stats[STAT_HEALTH] <= 0 || !currententity->model)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
modelalpha = 1.0;
|
modelalpha = 1.0;//currententity->alpha;
|
||||||
|
|
||||||
// hack the depth range to prevent view model from poking into walls
|
// hack the depth range to prevent view model from poking into walls
|
||||||
glDepthRange (gldepthmin, gldepthmin + 0.3 * (gldepthmax - gldepthmin));
|
glDepthRange (gldepthmin, gldepthmin + 0.3 * (gldepthmax - gldepthmin));
|
||||||
|
|
Loading…
Reference in a new issue