summaryrefslogtreecommitdiffstatshomepage
path: root/hlsl/yiq_encode.fx
diff options
context:
space:
mode:
Diffstat (limited to 'hlsl/yiq_encode.fx')
-rw-r--r--hlsl/yiq_encode.fx8
1 files changed, 4 insertions, 4 deletions
diff --git a/hlsl/yiq_encode.fx b/hlsl/yiq_encode.fx
index c1c0079dd1a..d9c888d5a3c 100644
--- a/hlsl/yiq_encode.fx
+++ b/hlsl/yiq_encode.fx
@@ -93,10 +93,10 @@ float4 ps_main(PS_INPUT Input) : COLOR
float2 Scaler = float2(RawWidth, RawHeight);
float2 InvRatios = float2(1.0f / WidthRatio, 1.0f / HeightRatio);
- float2 Coord0 = Input.Coord0 + float2(0.00f, 0.0f) / Scaler;
- float2 Coord1 = Input.Coord1 + float2(0.25f, 0.0f) / Scaler;
- float2 Coord2 = Input.Coord2 + float2(0.50f, 0.0f) / Scaler;
- float2 Coord3 = Input.Coord3 + float2(0.75f, 0.0f) / Scaler;
+ float2 Coord0 = Input.Coord0 + float2(PValue * 0.00f, 0.0f) / Scaler;
+ float2 Coord1 = Input.Coord1 + float2(PValue * 0.25f, 0.0f) / Scaler;
+ float2 Coord2 = Input.Coord2 + float2(PValue * 0.50f, 0.0f) / Scaler;
+ float2 Coord3 = Input.Coord3 + float2(PValue * 0.75f, 0.0f) / Scaler;
float2 TexelOffset = 0.5f / Scaler;
float3 Texel0 = tex2D(DiffuseSampler, Coord0 + TexelOffset).rgb;