Remove unused and unneeded ringSystemSections option

pull/276/head
Hleb Valoshka 2019-04-21 16:14:25 +03:00
parent a426916e2a
commit 920a0c81b1
7 changed files with 0 additions and 9 deletions

View File

@ -564,7 +564,6 @@ Renderer::~Renderer()
Renderer::DetailOptions::DetailOptions() :
ringSystemSections(100),
orbitPathSamplePoints(100),
shadowTextureSize(256),
eclipseTextureSize(128),
@ -4772,7 +4771,6 @@ void Renderer::renderObject(const Vector3f& pos,
radius, 1.0f - obj.semiAxes.y(),
textureResolution,
(renderFlags & ShowRingShadows) != 0 && lit,
detailOptions.ringSystemSections,
this);
}
@ -4940,7 +4938,6 @@ void Renderer::renderObject(const Vector3f& pos,
radius, 1.0f - obj.semiAxes.y(),
textureResolution,
(renderFlags & ShowRingShadows) != 0 && lit,
detailOptions.ringSystemSections,
this);
}
}

View File

@ -95,7 +95,6 @@ class Renderer
struct DetailOptions
{
DetailOptions();
unsigned int ringSystemSections;
unsigned int orbitPathSamplePoints;
unsigned int shadowTextureSize;
unsigned int eclipseTextureSize;

View File

@ -669,7 +669,6 @@ void renderRings_GLSL(RingSystem& rings,
float planetOblateness,
unsigned int textureResolution,
bool renderShadow,
unsigned int nSections,
const Renderer* renderer)
{
float inner = rings.innerRadius / planetRadius;

View File

@ -68,7 +68,6 @@ void renderRings_GLSL(RingSystem& rings,
float planetOblateness,
unsigned int textureResolution,
bool renderShadow,
unsigned int nSections,
const Renderer* renderer);
void renderGeometry_GLSL_Unlit(Geometry* geometry,

View File

@ -4260,7 +4260,6 @@ bool CelestiaCore::initRenderer()
//fmt::printf(_("render path: %i\n"), context->getRenderPath());
Renderer::DetailOptions detailOptions;
detailOptions.ringSystemSections = config->ringSystemSections;
detailOptions.orbitPathSamplePoints = config->orbitPathSamplePoints;
detailOptions.shadowTextureSize = config->shadowTextureSize;
detailOptions.eclipseTextureSize = config->eclipseTextureSize;

View File

@ -135,7 +135,6 @@ CelestiaConfig* ReadCelestiaConfig(const string& filename, CelestiaConfig *confi
config->linearFadeFraction = 0.0f;
configParams->getNumber("LinearFadeFraction", config->linearFadeFraction);
config->ringSystemSections = getUint(configParams, "RingSystemSections", 100);
config->orbitPathSamplePoints = getUint(configParams, "OrbitPathSamplePoints", 100);
config->shadowTextureSize = getUint(configParams, "ShadowTextureSize", 256);
config->eclipseTextureSize = getUint(configParams, "EclipseTextureSize", 128);

View File

@ -61,7 +61,6 @@ public:
// Renderer detail options
unsigned int shadowTextureSize;
unsigned int eclipseTextureSize;
unsigned int ringSystemSections;
unsigned int orbitPathSamplePoints;
unsigned int aaSamples;