diff options
| author | Pokechu22 <Pokechu022@gmail.com> | 2022-01-24 22:48:43 -0800 |
|---|---|---|
| committer | Pokechu22 <Pokechu022@gmail.com> | 2022-02-08 15:15:15 -0800 |
| commit | 444f6fd0cb84a673329cf33eacf8907bf96b5951 (patch) | |
| tree | bbb8a34251b7369a4f39355d61dfacbbed60954e /Source/Core/VideoCommon/UberShaderPixel.cpp | |
| parent | 0327e6acb4a4f883003fb00b04a8092a1914090a (diff) | |
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.
Diffstat (limited to 'Source/Core/VideoCommon/UberShaderPixel.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/UberShaderPixel.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/Core/VideoCommon/UberShaderPixel.cpp b/Source/Core/VideoCommon/UberShaderPixel.cpp index 0ce13725d6..fa6ad7bc75 100644 --- a/Source/Core/VideoCommon/UberShaderPixel.cpp +++ b/Source/Core/VideoCommon/UberShaderPixel.cpp @@ -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 // ========= |
