From 600ac568a9f7e4f2e55fcf3963f19a355e7115b3 Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Wed, 9 Oct 2024 12:14:53 +0200 Subject: [PATCH] Change default shadows update rate at far plane to be 1 to prevent artifacts Users can tweak this down manually when optimizing game (dynamic games might stay at 1) --- Source/Engine/Level/Actors/Light.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Engine/Level/Actors/Light.h b/Source/Engine/Level/Actors/Light.h index 3138d996f..e43520df5 100644 --- a/Source/Engine/Level/Actors/Light.h +++ b/Source/Engine/Level/Actors/Light.h @@ -174,7 +174,7 @@ public: /// Frequency of shadow updates at the maximum distance from the view at which shadows are still rendered. This value is multiplied by ShadowsUpdateRate and allows scaling the update rate in-between the shadow range. For example, if light is near view, it will get normal shadow updates but will reduce this rate when far from view. See ShadowsUpdateRate to learn more. /// API_FIELD(Attributes="EditorOrder(105), EditorDisplay(\"Shadow\", \"Update Rate At Distance\"), Limit(0.0f, 1.0f)") - float ShadowsUpdateRateAtDistance = 0.5f; + float ShadowsUpdateRateAtDistance = 1.0f; /// /// Defines the resolution of the shadow map texture used to draw objects projection from light-point-of-view. Higher values increase shadow quality at cost of performance.