Remove unused and unneeded ringSystemSections option
parent
a426916e2a
commit
920a0c81b1
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -95,7 +95,6 @@ class Renderer
|
|||
struct DetailOptions
|
||||
{
|
||||
DetailOptions();
|
||||
unsigned int ringSystemSections;
|
||||
unsigned int orbitPathSamplePoints;
|
||||
unsigned int shadowTextureSize;
|
||||
unsigned int eclipseTextureSize;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -61,7 +61,6 @@ public:
|
|||
// Renderer detail options
|
||||
unsigned int shadowTextureSize;
|
||||
unsigned int eclipseTextureSize;
|
||||
unsigned int ringSystemSections;
|
||||
unsigned int orbitPathSamplePoints;
|
||||
|
||||
unsigned int aaSamples;
|
||||
|
|
Loading…
Reference in New Issue