summaryrefslogtreecommitdiffstatshomepage
path: root/hlsl/phosphor.fx
diff options
context:
space:
mode:
authorGravatarGravatar Ryan Holtz <rholtz@batcountryentertainment.com>2013-08-30 01:05:13 +0000
committerGravatarGravatar Ryan Holtz <rholtz@batcountryentertainment.com>2013-08-30 01:05:13 +0000
commit8f613c115bfef732fe63bc58bd992a8e56c3d934 (patch)
treefec1f0765d3c8e3a0a4d55ebcf43cc69d2a17b2b /hlsl/phosphor.fx
parent1e764f2c8d04a9c086808333abb278b6b3d42688 (diff)
more HLSL cleanup, part e of pi (nw)
Diffstat (limited to 'hlsl/phosphor.fx')
-rw-r--r--hlsl/phosphor.fx6
1 files changed, 2 insertions, 4 deletions
diff --git a/hlsl/phosphor.fx b/hlsl/phosphor.fx
index 99f7574e1f5..97575051843 100644
--- a/hlsl/phosphor.fx
+++ b/hlsl/phosphor.fx
@@ -61,8 +61,7 @@ struct PS_INPUT
uniform float2 ScreenDims;
-uniform float TextureWidth;
-uniform float TextureHeight;
+uniform float2 TargetDims;
uniform float Passthrough;
@@ -77,8 +76,7 @@ VS_OUTPUT vs_main(VS_INPUT Input)
Output.Position *= float4(2.0f, 2.0f, 1.0f, 1.0f);
Output.Color = Input.Color;
- float2 HalfTexOffset = 0.5f / float2(TextureWidth, TextureHeight);
- Output.TexCoord = Input.TexCoord + HalfTexOffset;
+ Output.TexCoord = Input.TexCoord + 0.5f / TargetDims;
Output.PrevCoord = Output.TexCoord;
return Output;