diff options
author | Paweł Redman <pawel.redman@gmail.com> | 2015-06-28 00:42:21 +0200 |
---|---|---|
committer | Paweł Redman <pawel.redman@gmail.com> | 2015-06-28 00:42:21 +0200 |
commit | 5904b538d7fd639429a450b0ad7928cd311213fd (patch) | |
tree | e8a84511c944e157400927cf9ece1c5271b2fd12 /src/cgame/cg_main.c | |
parent | 1d91c18466031a320b70828d84541b8094a2b486 (diff) |
Make cg_brighten more precise.
Diffstat (limited to 'src/cgame/cg_main.c')
-rw-r--r-- | src/cgame/cg_main.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/cgame/cg_main.c b/src/cgame/cg_main.c index 91187fe..e17965c 100644 --- a/src/cgame/cg_main.c +++ b/src/cgame/cg_main.c @@ -242,6 +242,7 @@ vmCvar_t cg_hitSounds; vmCvar_t cg_hitStats; vmCvar_t cg_brighten; +vmCvar_t cg_brightenWraith; typedef struct { @@ -401,7 +402,8 @@ static cvarTable_t cvarTable[ ] = { &cg_hitSounds, "cg_hitSounds", "1", CVAR_ARCHIVE }, { &cg_hitStats, "cg_hitStats", "0", CVAR_ARCHIVE }, - { &cg_brighten, "cg_brighten", "0", CVAR_ARCHIVE } + { &cg_brighten, "cg_brighten", "0", CVAR_ARCHIVE }, + { &cg_brightenWraith, "cg_brightenWraith", "4", CVAR_ARCHIVE } }; static int cvarTableSize = sizeof( cvarTable ) / sizeof( cvarTable[0] ); @@ -946,7 +948,10 @@ static void CG_RegisterGraphics( void ) cgs.media.warpingEnvironmentShader = trap_R_RegisterShader( "gfx/level1/warpingEnvironment" ); cgs.media.warpParticle = trap_R_RegisterShader( "gfx/level1/warpParticle1" ); - cgs.media.brightenShader = trap_R_RegisterShader( "gfx/brighten" ); + for( i = 0; i < NUM_BRIGHTEN_SHADERS; i++ ) + { + cgs.media.brightenShaders[ i ] = trap_R_RegisterShader( va( "gfx/brighten%d", i ) ); + } CG_BuildableStatusParse( "ui/assets/human/buildstat.cfg", &cgs.humanBuildStat ); CG_BuildableStatusParse( "ui/assets/alien/buildstat.cfg", &cgs.alienBuildStat ); |