diff options
Diffstat (limited to 'hlsl/prescale.fx')
-rw-r--r-- | hlsl/prescale.fx | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/hlsl/prescale.fx b/hlsl/prescale.fx index 10420af1b85..965d89691f8 100644 --- a/hlsl/prescale.fx +++ b/hlsl/prescale.fx @@ -41,11 +41,10 @@ struct PS_INPUT // Passthrough Vertex Shader //----------------------------------------------------------------------------- -float TargetWidth; -float TargetHeight; +uniform float TargetWidth; +uniform float TargetHeight; -float RawWidth; -float RawHeight; +uniform float2 RawDims; VS_OUTPUT vs_main(VS_INPUT Input) { @@ -70,14 +69,13 @@ VS_OUTPUT vs_main(VS_INPUT Input) float4 ps_main(PS_INPUT Input) : COLOR { - float2 RawDims = float2(RawWidth, RawHeight); - float2 TexCoord = Input.TexCoord * RawDims; - TexCoord -= frac(TexCoord); - TexCoord += 0.5f; - TexCoord /= RawDims; - - float4 Center = tex2D(DiffuseSampler, TexCoord); - return Center; + //float2 TexCoord = Input.TexCoord * RawDims; + //TexCoord -= frac(TexCoord); + //TexCoord += 0.5f; + //TexCoord /= RawDims; + // + //return tex2D(DiffuseSampler, TexCoord); + return tex2D(DiffuseSampler, Input.TexCoord); } //----------------------------------------------------------------------------- |