mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 20:28:56 +00:00
TextureConversionShader: fix XFB decoding shader
This commit is contained in:
parent
4e5702de0f
commit
24ba3bf2f2
1 changed files with 1 additions and 1 deletions
|
@ -1345,7 +1345,7 @@ static const std::map<TextureFormat, DecodingShaderInfo> s_decoding_shader_info{
|
|||
int buffer_pos = int(u_src_offset + (uv.y * u_src_row_stride) + (uv.x / 2u));
|
||||
float4 yuyv = float4(texelFetch(s_input_buffer, buffer_pos));
|
||||
|
||||
float y = (uv.x & 1u) != 0u ? yuyv.r : yuyv.g;
|
||||
float y = (uv.x & 1u) != 0u ? yuyv.b : yuyv.r;
|
||||
|
||||
float yComp = 1.164 * (y - 16.0);
|
||||
float uComp = yuyv.g - 128.0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue