From f7b8cdf6f3a20aa8487cd3b41517e5b7966d26a8 Mon Sep 17 00:00:00 2001 From: Tim <15017472+doodlum@users.noreply.github.com> Date: Tue, 25 Jul 2023 23:56:02 +0100 Subject: [PATCH] Fixed the fix for the reflection fix --- package/Shaders/Lighting.hlsl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/Shaders/Lighting.hlsl b/package/Shaders/Lighting.hlsl index e2611df58..2ac64bac8 100644 --- a/package/Shaders/Lighting.hlsl +++ b/package/Shaders/Lighting.hlsl @@ -1944,7 +1944,7 @@ PS_OUTPUT main(PS_INPUT input) # if !defined(LANDSCAPE) && defined(SPECULAR) // Green reflections fix - psout.ScreenSpaceNormals.w = psout.ScreenSpaceNormals.w * (psout.Albedo.w == 1); + psout.ScreenSpaceNormals.w = psout.ScreenSpaceNormals.w * pow(psout.Albedo.w, 10); # endif // !defined(LANDSCAPE) && defined(SPECULAR) float3 screenSpaceNormal;