NTSC fixes, nw

This commit is contained in:
Ryan Holtz 2011-05-23 01:53:35 +00:00
parent 93ea1ba81c
commit ae9fbbe44d
3 changed files with 4 additions and 4 deletions

View File

@ -79,8 +79,8 @@ VS_OUTPUT vs_main(VS_INPUT Input)
Output.Color = Input.Color;
float2 InvTexSize = float2(1.0f / TargetWidth, 1.0f / TargetHeight);
Output.TexCoord = Input.TexCoord + 0.5f / float2(RawWidth, RawHeight);
Output.PrevCoord = Output.TexCoord + 0.5f / float2(RawWidth, RawHeight);
Output.TexCoord = Input.TexCoord + 0.5f * InvTexSize;
Output.PrevCoord = Output.TexCoord + 0.5f * InvTexSize;
return Output;
}

View File

@ -155,7 +155,7 @@ float4 ps_main(PS_INPUT Input) : COLOR
float2 CoordA = Input.Coord2.zw * RawDims;
float2 CoordB = Input.Coord3.zw * RawDims;
float W = WValue;
float W = WValue * 2.0f;
float T0 = Coord0.x + AValue * Coord0.y + BValue;
float T1 = Coord1.x + AValue * Coord1.y + BValue;
float T2 = Coord2.x + AValue * Coord2.y + BValue;

View File

@ -107,7 +107,7 @@ float4 ps_main(PS_INPUT Input) : COLOR
float2 Coord2 = (Input.Coord2.xy + float2(0.50f / RawWidth, 0.0f)) * Scaler;
float2 Coord3 = (Input.Coord3.xy + float2(0.75f / RawWidth, 0.0f)) * Scaler;
float W = WValue;
float W = WValue * 2.0f;
float T0 = Coord0.x + AValue * Coord0.y + BValue;
float T1 = Coord1.x + AValue * Coord1.y + BValue;
float T2 = Coord2.x + AValue * Coord2.y + BValue;