/** * @ Version: SCREEN SPACE SHADERS - UPDATE 22 * @ Description: Screen Space Shadows - Combine * @ Modified time: 2024-10-01 07:30 * @ Author: https://www.moddb.com/members/ascii1457 * @ Mod: https://www.moddb.com/mods/stalker-anomaly/addons/screen-space-shaders */ #include "common.h" Texture2D sss_image_1; Texture2D sss_image_2; float4 main ( p_screen I ) : SV_Target { float4 SSS_1 = sss_image_1.Sample(smp_linear, I.tc0.xy * float2(2.0f, 1.0f)); float4 SSS_2 = sss_image_2.Sample(smp_linear, I.tc0.xy * float2(2.0f, 1.0f)); return lerp(SSS_1, SSS_2, I.tc0.x > 0.5f); }