Skip to content
Permalink
Browse files

mint-arena: Add r_lodCurveError to geometry detail menu option

  • Loading branch information...
zturtleman committed Feb 15, 2017
1 parent dd96546 commit 8681f9b9e2d284f6a0455a152638c64065af3548
Showing with 22 additions and 4 deletions.
  1. +22 −4 code/q3_ui/ui_video.c
@@ -307,11 +307,11 @@ static InitialVideoOptions_s s_ivo_templates[] =
{
// very high
{
6, qtrue, 3, 0, 2, 3, 5, 2, qtrue // Note: If r_availableModes is found, mode is changed to -2.
6, qtrue, 3, 0, 2, 4, 5, 2, qtrue // Note: If r_availableModes is found, mode is changed to -2.
},
// high
{
6, qtrue, 3, 0, 2, 2, 2, 1, qtrue
6, qtrue, 3, 0, 2, 3, 2, 1, qtrue
},
// normal
{
@@ -716,25 +716,35 @@ static void GraphicsOptions_ApplyChanges( void *unused, int notification )
trap_Cvar_SetValue( "r_vertexLight", s_graphicsoptions.lighting.curvalue );
trap_Cvar_SetValue( "r_flares", s_graphicsoptions.flares.curvalue );

if ( s_graphicsoptions.geometry.curvalue == 3 )
if ( s_graphicsoptions.geometry.curvalue == 4 )
{
trap_Cvar_SetValue( "r_lodBias", -2 );
trap_Cvar_SetValue( "r_subdivisions", 1 );
trap_Cvar_SetValue( "r_lodCurveError", 10000 );
}
else if ( s_graphicsoptions.geometry.curvalue == 3 )
{
trap_Cvar_SetValue( "r_lodBias", -2 );
trap_Cvar_SetValue( "r_subdivisions", 4 );
trap_Cvar_SetValue( "r_lodCurveError", 1000 );
}
else if ( s_graphicsoptions.geometry.curvalue == 2 )
{
trap_Cvar_SetValue( "r_lodBias", 0 );
trap_Cvar_SetValue( "r_subdivisions", 4 );
trap_Cvar_SetValue( "r_lodCurveError", 250 );
}
else if ( s_graphicsoptions.geometry.curvalue == 1 )
{
trap_Cvar_SetValue( "r_lodBias", 1 );
trap_Cvar_SetValue( "r_subdivisions", 12 );
trap_Cvar_SetValue( "r_lodCurveError", 250 );
}
else
{
trap_Cvar_SetValue( "r_lodBias", 1 );
trap_Cvar_SetValue( "r_subdivisions", 20 );
trap_Cvar_SetValue( "r_lodCurveError", 250 );
}

if ( s_graphicsoptions.filter.curvalue >= 2 )
@@ -970,7 +980,14 @@ static void GraphicsOptions_SetMenuItems( void )
}
else
{
s_graphicsoptions.geometry.curvalue = 3;
if ( trap_Cvar_VariableValue( "r_subdivisions" ) == 1 )
{
s_graphicsoptions.geometry.curvalue = 4;
}
else
{
s_graphicsoptions.geometry.curvalue = 3;
}
}

switch ( trap_Cvar_VariableIntegerValue( "r_ext_multisample" ) )
@@ -1035,6 +1052,7 @@ void GraphicsOptions_MenuInit( void )
{
"Low",
"Medium",
"Standard",
"High",
"Very High",
NULL

0 comments on commit 8681f9b

Please sign in to comment.
You can’t perform that action at this time.