mirror of https://github.com/PCSX2/pcsx2.git
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:
parent
0c3a0da58f
commit
f28f03803f
|
@ -896,11 +896,11 @@ PS_OUTPUT ps_main(PS_INPUT input)
|
|||
{
|
||||
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)
|
||||
{
|
||||
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;
|
||||
|
|
Loading…
Reference in New Issue