diff options
author | Paweł Redman <pawel.redman@gmail.com> | 2015-06-27 19:59:02 +0200 |
---|---|---|
committer | Paweł Redman <pawel.redman@gmail.com> | 2015-06-27 19:59:02 +0200 |
commit | 1d91c18466031a320b70828d84541b8094a2b486 (patch) | |
tree | e5ed8092fd65756cbb3cc81745877808aa69970a /src/cgame/cg_main.c | |
parent | 9f6a3c3c4c0d8c50f7e380feeb93e860af17638f (diff) |
Implement cg_brighten.
Diffstat (limited to 'src/cgame/cg_main.c')
-rw-r--r-- | src/cgame/cg_main.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/cgame/cg_main.c b/src/cgame/cg_main.c index 672b8bb..91187fe 100644 --- a/src/cgame/cg_main.c +++ b/src/cgame/cg_main.c @@ -241,6 +241,8 @@ vmCvar_t cg_healthBarAlpha; vmCvar_t cg_hitSounds; vmCvar_t cg_hitStats; +vmCvar_t cg_brighten; + typedef struct { vmCvar_t *vmCvar; @@ -397,7 +399,9 @@ static cvarTable_t cvarTable[ ] = { &cg_healthBarAlpha, "cg_healthBarAlpha", "0.5", CVAR_ARCHIVE }, { &cg_hitSounds, "cg_hitSounds", "1", CVAR_ARCHIVE }, - { &cg_hitStats, "cg_hitStats", "0", CVAR_ARCHIVE } + { &cg_hitStats, "cg_hitStats", "0", CVAR_ARCHIVE }, + + { &cg_brighten, "cg_brighten", "0", CVAR_ARCHIVE } }; static int cvarTableSize = sizeof( cvarTable ) / sizeof( cvarTable[0] ); @@ -942,6 +946,8 @@ 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" ); + CG_BuildableStatusParse( "ui/assets/human/buildstat.cfg", &cgs.humanBuildStat ); CG_BuildableStatusParse( "ui/assets/alien/buildstat.cfg", &cgs.alienBuildStat ); |