提交 03346d7e 编写于 作者: P Palana

Make PSPacked422_Reverse sample in texel center

上级 7d0a1502
......@@ -208,6 +208,9 @@ float4 PSPacked422_Reverse(VertInOut vert_in, int u_pos, int v_pos,
float odd = floor(fmod(width * vert_in.uv.x + PRECISION_OFFSET, 2.0));
float x = floor(width_d2 * vert_in.uv.x + PRECISION_OFFSET) *
width_d2_i;
x += input_width_i_d2;
float4 texel = image.Sample(def_sampler, float2(x, y));
return float4(odd > 0.5 ? texel[y1_pos] : texel[y0_pos],
texel[u_pos], texel[v_pos], 1.0);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册