summaryrefslogtreecommitdiff
path: root/src/renderergl2/tr_init.c
diff options
context:
space:
mode:
authorSmileTheory <SmileTheory@gmail.com>2016-03-07 02:27:03 -0800
committerTim Angus <tim@ngus.net>2016-04-07 11:54:14 +0100
commit5d1223366351d7ed9ee537d8f4245ab29b550d2c (patch)
tree700ff09741d944bb6ea5e71bbc0119c97acde523 /src/renderergl2/tr_init.c
parentfdf6b74c210f7cc1fd54472308fc61c9341c4de1 (diff)
OpenGL2: Add r_shadowBlur.
Diffstat (limited to 'src/renderergl2/tr_init.c')
-rw-r--r--src/renderergl2/tr_init.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/renderergl2/tr_init.c b/src/renderergl2/tr_init.c
index 18eecf0b..06c4f0ae 100644
--- a/src/renderergl2/tr_init.c
+++ b/src/renderergl2/tr_init.c
@@ -161,6 +161,7 @@ cvar_t *r_sunlightMode;
cvar_t *r_drawSunRays;
cvar_t *r_sunShadows;
cvar_t *r_shadowFilter;
+cvar_t *r_shadowBlur;
cvar_t *r_shadowMapSize;
cvar_t *r_shadowCascadeZNear;
cvar_t *r_shadowCascadeZFar;
@@ -1180,7 +1181,8 @@ void R_Register( void )
r_sunShadows = ri.Cvar_Get( "r_sunShadows", "1", CVAR_ARCHIVE | CVAR_LATCH );
r_shadowFilter = ri.Cvar_Get( "r_shadowFilter", "1", CVAR_ARCHIVE | CVAR_LATCH );
- r_shadowMapSize = ri.Cvar_Get( "r_shadowMapSize", "1024", CVAR_ARCHIVE | CVAR_LATCH );
+ r_shadowBlur = ri.Cvar_Get("r_shadowBlur", "0", CVAR_ARCHIVE | CVAR_LATCH);
+ r_shadowMapSize = ri.Cvar_Get("r_shadowMapSize", "1024", CVAR_ARCHIVE | CVAR_LATCH);
r_shadowCascadeZNear = ri.Cvar_Get( "r_shadowCascadeZNear", "8", CVAR_ARCHIVE | CVAR_LATCH );
r_shadowCascadeZFar = ri.Cvar_Get( "r_shadowCascadeZFar", "1024", CVAR_ARCHIVE | CVAR_LATCH );
r_shadowCascadeZBias = ri.Cvar_Get( "r_shadowCascadeZBias", "0", CVAR_ARCHIVE | CVAR_LATCH );