From 897e451ab65e20e8bbecbe0d5ce14479b49a5f1d Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Mon, 10 Mar 2025 21:00:49 +0100 Subject: [PATCH] Restore shadows on Switch after refactor into Shadow Atlas --- Source/Engine/Renderer/ShadowsPass.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/Source/Engine/Renderer/ShadowsPass.cpp b/Source/Engine/Renderer/ShadowsPass.cpp index 92fd0a886..b2a4f749c 100644 --- a/Source/Engine/Renderer/ShadowsPass.cpp +++ b/Source/Engine/Renderer/ShadowsPass.cpp @@ -482,7 +482,6 @@ bool ShadowsPass::Init() // Select format for shadow maps _shadowMapFormat = PixelFormat::Unknown; -#if !PLATFORM_SWITCH // TODO: fix shadows performance issue on Switch for (const PixelFormat format : { PixelFormat::D16_UNorm, PixelFormat::D24_UNorm_S8_UInt, PixelFormat::D32_Float }) { const auto formatTexture = PixelFormatExtensions::FindShaderResourceFormat(format, false); @@ -495,7 +494,6 @@ bool ShadowsPass::Init() break; } } -#endif if (_shadowMapFormat == PixelFormat::Unknown) LOG(Warning, "GPU doesn't support shadows rendering");