From 5f860db6a512c800e77ddea0d77f68c32fe84093 Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Thu, 11 Apr 2024 17:34:21 +0200 Subject: [PATCH] Fix typo --- Source/Engine/Renderer/ShadowsPass.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Engine/Renderer/ShadowsPass.cpp b/Source/Engine/Renderer/ShadowsPass.cpp index 1d9ad83fe..fe2fa0cd2 100644 --- a/Source/Engine/Renderer/ShadowsPass.cpp +++ b/Source/Engine/Renderer/ShadowsPass.cpp @@ -562,7 +562,7 @@ void ShadowsPass::SetupLight(ShadowsCustomBuffer& shadows, RenderContext& render atlasLight.Bias = light.ShadowsDepthBias; atlasLight.FadeDistance = Math::Max(light.ShadowsFadeDistance, 0.1f); atlasLight.Distance = Math::Min(renderContext.View.Far, light.ShadowsDistance); - atlasLight.Bounds.Center = light.Position + renderContext.View.Position; + atlasLight.Bounds.Center = light.Position + renderContext.View.Origin; // Keep bounds in world-space to properly handle DirtyStaticBounds atlasLight.Bounds.Radius = 0.0f; }