@@ -96,8 +96,6 @@ using namespace celestia::engine;
9696using namespace celestia ::render;
9797using celestia::util::GetLogger;
9898
99- static const int REF_DISTANCE_TO_SCREEN = 400 ; // [mm]
100-
10199// Contribution from planetshine beyond this distance (in units of object radius)
102100// is considered insignificant.
103101static const float PLANETSHINE_DISTANCE_LIMIT_FACTOR = 100 .0f ;
@@ -3739,10 +3737,7 @@ void Renderer::renderPointStars(const StarDatabase& starDB,
37393737 starRenderer.labelMode = labelMode;
37403738 starRenderer.SolarSystemMaxDistance = SolarSystemMaxDistance;
37413739
3742- // Original function
3743- // float effDistanceToScreen = mmToInches((float) REF_DISTANCE_TO_SCREEN) * pixelSize * getScreenDpi(); // = 1.0 at startup
3744- // starRenderer.labelThresholdMag = 1.2f * max(1.0f, (faintestMag - 4.0f) * (1.0f - 0.5f * std::log10(effDistanceToScreen)));
3745- starRenderer.labelLowestIrradiation = 1 .0f ; // refinement is needed
3740+ starRenderer.labelLowestIrradiation = 1 .0f ;
37463741
37473742 starRenderer.colorTemp = &starColors;
37483743
@@ -3815,11 +3810,8 @@ void Renderer::renderDeepSkyObjects(const Universe& universe,
38153810
38163811 dsoRenderer.frustum = projectionMode->getInfiniteFrustum (MinNearPlaneDistance, observer.getZoom ());
38173812 // Use pixelSize * screenDpi instead of FoV, to eliminate windowHeight dependence.
3818-
3819- // Original function
3820- // float effDistanceToScreen = mmToInches((float) REF_DISTANCE_TO_SCREEN) * pixelSize * getScreenDpi(); // = 1.0 at startup
3821- // dsoRenderer.labelThresholdMag = 2.0f * max(1.0f, (faintestMag - 4.0f) * (1.0f - 0.5f * log10(effDistanceToScreen)));
3822- dsoRenderer.labelLowestIrradiation = 1 .0f ; // refinement is needed
3813+
3814+ dsoRenderer.labelLowestIrradiation = 1 .0f ;
38233815
38243816 using namespace celestia ;
38253817 galaxyRep = MarkerRepresentation (MarkerRepresentation::Triangle, 8 .0f , GalaxyLabelColor);
0 commit comments