tfx.fx: Correct a couple more blending factors.

Chane 0.5 to 128.0f/255.0f which is 0.50196078431.
Just to be safe it's accurate.
This commit is contained in:
lightningterror 2019-01-18 06:10:41 +01:00
parent 0c3a0da58f
commit f28f03803f
1 changed files with 4 additions and 4 deletions

View File

@ -896,11 +896,11 @@ PS_OUTPUT ps_main(PS_INPUT input)
{ {
float a = 128.0f / 255; // alpha output will be 0x80 float a = 128.0f / 255; // alpha output will be 0x80
c.a = PS_FBA ? a : step(0.5, c.a) * a; c.a = PS_FBA ? a : step(128.0f / 255.0f, c.a) * a;
} }
else if ((PS_DFMT == FMT_32) && PS_FBA) else if ((PS_DFMT == FMT_32) && PS_FBA)
{ {
if(c.a < 0.5) c.a += 128.0f/255.0f; if (c.a < 128.0f / 255.0f) c.a += 128.0f / 255.0f;
} }
output.c0 = c; output.c0 = c;