From 85c155eae5cdcb56e5b6184d6371d86e35ee771e Mon Sep 17 00:00:00 2001 From: doodlum <15017472+doodlum@users.noreply.github.com> Date: Sat, 23 Nov 2024 18:34:49 +0000 Subject: [PATCH] chore: less aggressive ssr edge (#781) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore: less aggressive ssr edge * style: 🎨 apply clang-format changes --------- Co-authored-by: doodlum --- package/Shaders/ISReflectionsRayTracing.hlsl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/Shaders/ISReflectionsRayTracing.hlsl b/package/Shaders/ISReflectionsRayTracing.hlsl index b89d96d6f..ab6912bdf 100644 --- a/package/Shaders/ISReflectionsRayTracing.hlsl +++ b/package/Shaders/ISReflectionsRayTracing.hlsl @@ -83,7 +83,7 @@ float4 GetReflectionColor( } // SSR Marching Radius Fade Factor (based on ray length) - float ssrMarchingRadiusFadeFactor = sqrt(1.0 - saturate(length(binaryRaySample.xy - projPosition.xy) / rayLength)); + float ssrMarchingRadiusFadeFactor = 1.0 - saturate(length(binaryRaySample.xy - projPosition.xy) / rayLength); // Screen Center Distance Fade Factor float2 uvResultScreenCenterOffset = binaryRaySample.xy - 0.5;