Further optimizations and fix for exponential height fog and skylight intensity curve
This commit is contained in:
@@ -192,7 +192,7 @@ r.SSGI.Quality=4
|
||||
r.VolumetricRenderTarget.Mode=1
|
||||
r.VolumetricCloud.ViewRaySampleMaxCount=64
|
||||
|
||||
r.DistanceFieldAO=0
|
||||
r.DistanceFieldAO=1
|
||||
|
||||
[/Script/LinuxTargetPlatform.LinuxTargetSettings]
|
||||
TargetArchitecture=X86_64UnknownLinuxGnu
|
||||
|
||||
Binary file not shown.
Binary file not shown.
BIN
Content/UI/OptionsScreen.uasset
LFS
BIN
Content/UI/OptionsScreen.uasset
LFS
Binary file not shown.
Binary file not shown.
@@ -475,11 +475,21 @@ void ATimeOfDayManager::ToggleTimeActive(bool bNewActive)
|
||||
TimeTicking = bNewActive;
|
||||
}
|
||||
|
||||
void ATimeOfDayManager::ToggleShadowsOnSkyLight(bool bActive)
|
||||
void ATimeOfDayManager::ApplyUserGraphicsScalability(int32 Index)
|
||||
{
|
||||
if (skyLight)
|
||||
{
|
||||
skyLight->SetCastShadows(bActive);
|
||||
skyLight->SetCastShadows(Index > 2);
|
||||
}
|
||||
|
||||
if (sunLight && moonLight)
|
||||
{
|
||||
constexpr float ShadowDistanceByIndex[] = { 3000.f, 7000.f, 10000.f, 20000.f };
|
||||
constexpr float DistanceShadowDistanceByIndex[] = { 15000.f, 20000.f, 30000.f, 40000.f };
|
||||
sunLight->SetDynamicShadowDistanceMovableLight(ShadowDistanceByIndex[Index]);
|
||||
sunLight->DistanceFieldShadowDistance = DistanceShadowDistanceByIndex[Index];
|
||||
moonLight->SetDynamicShadowDistanceMovableLight(ShadowDistanceByIndex[Index]);
|
||||
moonLight->DistanceFieldShadowDistance = DistanceShadowDistanceByIndex[Index];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -311,8 +311,8 @@ 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|Settings")
|
||||
void ApplyUserGraphicsScalability(int32 Index);
|
||||
|
||||
UFUNCTION(BlueprintCallable, Category = "Time of day")
|
||||
TArray<FCalendarDayData> GetCalendarDataForMonth(int32 Month = 1);
|
||||
|
||||
Reference in New Issue
Block a user