From 79db01d7ed01a4f3de06a8d8dc5c5e7099ef9d2e Mon Sep 17 00:00:00 2001 From: lightningterror Date: Fri, 28 Feb 2020 02:08:47 +0100 Subject: [PATCH] gsdx-d3d11: Truncate fog in tfx.fx shader. The change should've been pushed in #3091 Fixes regression with fog rendering. --- plugins/GSdx/res/tfx.fx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/GSdx/res/tfx.fx b/plugins/GSdx/res/tfx.fx index 62b71a466d..d293c1d808 100644 --- a/plugins/GSdx/res/tfx.fx +++ b/plugins/GSdx/res/tfx.fx @@ -604,7 +604,7 @@ float4 fog(float4 c, float f) { if(PS_FOG) { - c.rgb = lerp(FogColor, c.rgb, f); + c.rgb = trunc(lerp(FogColor, c.rgb, f)); } return c;