Fix moon being enabled throught the day

This commit is contained in:
2026-09-15 21:12:19 +02:00
parent ed466f6376
commit 4f761a4461

View File

@@ -352,11 +352,11 @@ void ATimeOfDayManager::SetDirectionalLightIntensity(const float &_rotator)
: CurrentGiIntensity;
MainPP->Settings = Settings;
bool bSunEnabled = CurrentSunlightIntensity > 0.0f;
bool bSunEnabled = CurrentSunlightIntensity > 0.001f;
sunLight->SetVisibility(bSunEnabled);
sunLight->SetCastShadows(bSunEnabled);
bool bMoonEnabled = CurrentMoonlightIntensity > 0.0f;
bool bMoonEnabled = CurrentMoonlightIntensity > 0.001f;
moonLight->SetVisibility(bMoonEnabled);
moonLight->SetCastShadows(bMoonEnabled);
}