From 03346d7e9622cfad50cff80e17b507fbc4faba3a Mon Sep 17 00:00:00 2001 From: Palana Date: Mon, 2 Jun 2014 16:39:08 +0200 Subject: [PATCH] Make PSPacked422_Reverse sample in texel center --- build/data/libobs/format_conversion.effect | 3 +++ 1 file changed, 3 insertions(+) diff --git a/build/data/libobs/format_conversion.effect b/build/data/libobs/format_conversion.effect index 29ed7d89d..149279c45 100644 --- a/build/data/libobs/format_conversion.effect +++ b/build/data/libobs/format_conversion.effect @@ -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);