Treat alpha as 0 if alpha is 1 for blending

This removes the white box in fortune street again, without causing Mario Kart Wii to regress.
This commit is contained in:
Pokechu22
2022-01-24 22:48:43 -08:00
parent 0327e6acb4
commit 444f6fd0cb
3 changed files with 28 additions and 0 deletions

View File

@ -1032,6 +1032,9 @@ ShaderCode GenPixelShader(APIType api_type, const ShaderHostConfig& host_config,
" }}\n"
"\n");
out.Write(" // Hardware testing indicates that an alpha of 1 can pass an alpha test,\n"
" // but doesn't do anything in blending\n"
" if (TevResult.a == 1) TevResult.a = 0;\n");
// =========
// Dithering
// =========