diff options
Diffstat (limited to 'hlsl/prescale.fx')
-rw-r--r-- | hlsl/prescale.fx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hlsl/prescale.fx b/hlsl/prescale.fx index 846c02577ce..6faa659e6d0 100644 --- a/hlsl/prescale.fx +++ b/hlsl/prescale.fx @@ -54,13 +54,13 @@ uniform float2 TargetDims; VS_OUTPUT vs_main(VS_INPUT Input) { VS_OUTPUT Output = (VS_OUTPUT)0; - + Output.Position = float4(Input.Position.xyz, 1.0f); Output.Position.xy /= ScreenDims; Output.Position.y = 1.0f - Output.Position.y; // flip y Output.Position.xy -= 0.5f; // center Output.Position.xy *= 2.0f; // zoom - + Output.TexCoord = Input.TexCoord; Output.TexCoord += 0.5f / TargetDims; // half texel offset correction (DX9) |