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.
This commit is contained in:
lightningterror 2019-01-14 17:01:17 +01:00
parent ee4d295667
commit fa4ae7800b
1 changed files with 2 additions and 2 deletions

View File

@ -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;