From 4c8528dcae507e43303a61475dda2c4930fde6b4 Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Fri, 5 Apr 2024 12:48:34 +0200 Subject: [PATCH] Remove branch macro as it's just texture sample in lights shader --- Source/Shaders/Lights.shader | 3 --- 1 file changed, 3 deletions(-) diff --git a/Source/Shaders/Lights.shader b/Source/Shaders/Lights.shader index eb11dc8a8..363bdb9a1 100644 --- a/Source/Shaders/Lights.shader +++ b/Source/Shaders/Lights.shader @@ -60,7 +60,6 @@ void PS_Directional(Quad_VS2PS input, out float4 output : SV_Target0) // Sample shadow mask float4 shadowMask = 1; - BRANCH if (Light.ShadowsBufferAddress != 0) { shadowMask = SAMPLE_RT(Shadow, input.TexCoord); @@ -97,7 +96,6 @@ void PS_Point(Model_VS2PS input, out float4 output : SV_Target0) // Sample shadow mask float4 shadowMask = 1; - BRANCH if (Light.ShadowsBufferAddress != 0) { shadowMask = SAMPLE_RT(Shadow, uv); @@ -139,7 +137,6 @@ void PS_Spot(Model_VS2PS input, out float4 output : SV_Target0) // Sample shadow mask float4 shadowMask = 1; - BRANCH if (Light.ShadowsBufferAddress != 0) { shadowMask = SAMPLE_RT(Shadow, uv);