diff options
| author | JosJuice <josjuice@gmail.com> | 2021-12-23 00:14:06 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-12-23 00:14:06 +0100 |
| commit | e6f40fa015a3bef927ac30857ab22aaf7d9e4234 (patch) | |
| tree | bf28580c27101315f6758903dfa50e54d62c238f /Source/Core/VideoCommon/TextureConverterShaderGen.cpp | |
| parent | b1f79d9ecf87070c78789acdf5bc329637bc5812 (diff) | |
| parent | 254f39cf785e7dc4790acca38aa0dc10f506aa70 (diff) | |
Merge pull request #10279 from Pokechu22/intensity-alpha
TextureConverterShaderGen: Set alpha to 1 on intensity formats if EFB lacks alpha
Diffstat (limited to 'Source/Core/VideoCommon/TextureConverterShaderGen.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/TextureConverterShaderGen.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/Core/VideoCommon/TextureConverterShaderGen.cpp b/Source/Core/VideoCommon/TextureConverterShaderGen.cpp index 42e077ba96..ea458717c8 100644 --- a/Source/Core/VideoCommon/TextureConverterShaderGen.cpp +++ b/Source/Core/VideoCommon/TextureConverterShaderGen.cpp @@ -216,6 +216,9 @@ ShaderCode GeneratePixelShader(APIType api_type, const UidData* uid_data) } else if (uid_data->is_intensity) { + if (!uid_data->efb_has_alpha) + out.Write(" texcol.a = 1.0;\n"); + bool has_four_bits = (uid_data->dst_format == EFBCopyFormat::R4 || uid_data->dst_format == EFBCopyFormat::RA4); bool has_alpha = |
