diff --git a/Source/Shaders/ShadowsSampling.hlsl b/Source/Shaders/ShadowsSampling.hlsl index c56904e6b..e53cab08d 100644 --- a/Source/Shaders/ShadowsSampling.hlsl +++ b/Source/Shaders/ShadowsSampling.hlsl @@ -283,6 +283,11 @@ ShadowSample SampleDirectionalLightShadow(LightData light, Buffer shadow #endif result.SurfaceShadow = PostProcessShadow(shadow, result.SurfaceShadow); + + // Fix shadow intensity that got reduced by cascades sharpness stabilization (see above) + if (cascadeIndex != 0 && result.SurfaceShadow <= 0.1f) + result.SurfaceShadow += 0.01f; + return result; }