From fa4ae7800b700ce429822abb734a39556035c946 Mon Sep 17 00:00:00 2001 From: lightningterror Date: Mon, 14 Jan 2019 17:01:17 +0100 Subject: [PATCH] tfx.fx: Adjust some blending factors 255.0f / 128.0f gives us 1.9921875. 128.0f / 255.0f gives us 0.50196078431. Which are more accurate. Fixes regression in dbz bt3 where characters appeared darker. --- plugins/GSdx/res/tfx.fx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/GSdx/res/tfx.fx b/plugins/GSdx/res/tfx.fx index ea07c03b10..11769ac2fd 100644 --- a/plugins/GSdx/res/tfx.fx +++ b/plugins/GSdx/res/tfx.fx @@ -890,7 +890,7 @@ PS_OUTPUT ps_main(PS_INPUT input) } } - output.c1 = c.a * 2; // used for alpha blending + output.c1 = c.a * 255.0f / 128.0f; // used for alpha blending if((PS_DFMT == FMT_16) || PS_AOUT) // 16 bit output { @@ -900,7 +900,7 @@ PS_OUTPUT ps_main(PS_INPUT input) } else if((PS_DFMT == FMT_32) && PS_FBA) { - if(c.a < 0.5) c.a += 0.5; + if(c.a < 0.5) c.a += 128.0f/255.0f; } output.c0 = c;