default a few cvars accordingly for GAME_TENEBRAE mode
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 28 Feb 2004 15:41:43 +0000 (15:41 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 28 Feb 2004 15:41:43 +0000 (15:41 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@3935 d7cf8633-e32d-0410-b094-e92efae38249

gl_rmain.c
r_shadow.c

index c79d159..8e5ae27 100644 (file)
@@ -262,7 +262,7 @@ void GL_Main_Init(void)
        Cvar_RegisterVariable(&r_waterscroll);
        Cvar_RegisterVariable(&r_watershader);
        Cvar_RegisterVariable(&r_drawcollisionbrushes);
-       if (gamemode == GAME_NEHAHRA || gamemode == GAME_NEXUIZ)
+       if (gamemode == GAME_NEHAHRA || gamemode == GAME_NEXUIZ || gamemode == GAME_TENEBRAE)
                Cvar_SetValue("r_fullbrights", 0);
        R_RegisterModule("GL_Main", gl_main_start, gl_main_shutdown, gl_main_newmap);
 }
index 43f36fc..8c083ec 100644 (file)
@@ -297,6 +297,11 @@ void R_Shadow_Init(void)
        Cvar_RegisterVariable(&r_shadow_worldshadows);
        Cvar_RegisterVariable(&r_shadow_dlightshadows);
        Cvar_RegisterVariable(&r_shadow_showtris);
+       if (gamemode == GAME_TENEBRAE)
+       {
+               Cvar_SetValue("r_shadow_gloss", 2);
+               Cvar_SetValue("r_shadow_bumpscale_basetexture", 4);
+       }
        Cmd_AddCommand("r_shadow_help", R_Shadow_Help_f);
        R_Shadow_EditLights_Init();
        R_RegisterModule("R_Shadow", r_shadow_start, r_shadow_shutdown, r_shadow_newmap);