Optimization and improvements, disable DFAO, enable SMAA by default, do not rotate the moon, it's stationary now
This commit is contained in:
@@ -291,13 +291,6 @@ void ATimeOfDayManager::RotateSun(const float &_rotator)
|
||||
FRotator currentSunRotation = FRotator(FRotator::MakeFromEuler(currentRotInVectors));
|
||||
sunLight->SetWorldRotation(currentSunRotation);
|
||||
}
|
||||
if (moonLight->IsValidLowLevel())
|
||||
{
|
||||
FVector currentRotInVectors = FVector(
|
||||
0.0f, CurrentWeatherPreset->MoonRotationCurve->GetFloatValue(FloatMinutes), 110.0f);
|
||||
FRotator currentMoonRotation = FRotator(FRotator::MakeFromEuler(currentRotInVectors));
|
||||
moonLight->SetWorldRotation(currentMoonRotation);
|
||||
}
|
||||
}
|
||||
|
||||
void ATimeOfDayManager::SetDirectionalLightIntensity(const float &_rotator)
|
||||
@@ -482,6 +475,14 @@ void ATimeOfDayManager::ToggleTimeActive(bool bNewActive)
|
||||
TimeTicking = bNewActive;
|
||||
}
|
||||
|
||||
void ATimeOfDayManager::ToggleShadowsOnSkyLight(bool bActive)
|
||||
{
|
||||
if (skyLight)
|
||||
{
|
||||
skyLight->SetCastShadows(bActive);
|
||||
}
|
||||
}
|
||||
|
||||
TArray<FCalendarDayData> ATimeOfDayManager::GetCalendarDataForMonth(int32 Month)
|
||||
{
|
||||
TArray<FCalendarDayData> Data;
|
||||
|
||||
@@ -311,6 +311,9 @@ public:
|
||||
UFUNCTION(BlueprintCallable, Category = "Time of day")
|
||||
void ToggleTimeActive(bool bNewActive);
|
||||
|
||||
UFUNCTION(BlueprintCallable, Category = "Time of day")
|
||||
void ToggleShadowsOnSkyLight(bool bActive);
|
||||
|
||||
UFUNCTION(BlueprintCallable, Category = "Time of day")
|
||||
TArray<FCalendarDayData> GetCalendarDataForMonth(int32 Month = 1);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user