Skip to content
Permalink
Browse files

TextureConverterShader: Write EFB2Tex XFB copies with alpha value of 1

This way we don't end up with artifacts of the EFB's alpha values in
frame dumps. XFB copies loaded from RAM also set the alpha to 1, so this
will match.
  • Loading branch information
stenzek committed Feb 2, 2019
1 parent 50bdcb8 commit 2165523fdcdaf5a27110f92ae86d773293458343
Showing with 2 additions and 2 deletions.
  1. +2 −2 Source/Core/VideoCommon/TextureConverterShaderGen.cpp
@@ -268,8 +268,8 @@ ShaderCode GenerateShader(APIType api_type, const UidData* uid_data)
break; break;


case EFBCopyFormat::XFB: case EFBCopyFormat::XFB:
out.Write(" ocol0 = float4(pow(texcol.rgb, float3(gamma_rcp, gamma_rcp, gamma_rcp)), " out.Write(
"texcol.a);\n"); " ocol0 = float4(pow(texcol.rgb, float3(gamma_rcp, gamma_rcp, gamma_rcp)), 1.0f);\n");
break; break;


default: default:

0 comments on commit 2165523

Please sign in to comment.
You can’t perform that action at this time.