Removes useless option to show sky

Differential Revision: https://code.wildfiregames.com/D3382
This was SVN commit r24651.
This commit is contained in:
Vladislav Belov 2021-01-16 21:16:31 +00:00
parent 1eb342c595
commit 78d4dd0109
5 changed files with 1 additions and 14 deletions

View File

@ -78,7 +78,6 @@ vsync = false
particles = true
fog = true
silhouettes = true
showsky = true
novbo = false

View File

@ -236,12 +236,6 @@
"tooltip": "Lift darkness and fog of war smoothly.",
"config": "smoothlos"
},
{
"type": "boolean",
"label": "Show sky",
"tooltip": "Render Sky.",
"config": "showsky"
},
{
"type": "boolean",
"label": "VSync",

View File

@ -1343,10 +1343,7 @@ void CRenderer::RenderSubmissions(const CBoundingBoxAligned& waterScissor)
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT | GL_STENCIL_BUFFER_BIT);
}
if (g_RenderingOptions.GetShowSky())
{
m->skyManager.RenderSky();
}
m->skyManager.RenderSky();
// render submitted patches and models
RenderPatches(context, cullGroup);

View File

@ -95,7 +95,6 @@ CRenderingOptions::CRenderingOptions() : m_ConfigHooks(new ConfigHooks())
m_GPUSkinning = false;
m_SmoothLOS = false;
m_PostProc = false;
m_ShowSky = false;
m_DisplayFrustum = false;
m_DisplayShadowsFrustum = false;
m_RenderActors = true;
@ -168,7 +167,6 @@ void CRenderingOptions::ReadConfigAndSetupHooks()
SetFog(enabled);
});
m_ConfigHooks->Setup("silhouettes", m_Silhouettes);
m_ConfigHooks->Setup("showsky", m_ShowSky);
m_ConfigHooks->Setup("novbo", m_NoVBO);

View File

@ -101,7 +101,6 @@ OPTION_CUSTOM_SETTER(NAME, TYPE); OPTION_GETTER(NAME, TYPE); OPTION_DEF(NAME, TY
OPTION(GPUSkinning, bool);
OPTION(Silhouettes, bool);
OPTION(SmoothLOS, bool);
OPTION(ShowSky, bool);
OPTION(PostProc, bool);
OPTION(DisplayFrustum, bool);
OPTION(DisplayShadowsFrustum, bool);