summaryrefslogtreecommitdiffstatshomepage
path: root/hlsl/phosphor.fx
diff options
context:
space:
mode:
authorGravatarGravatar Ryan Holtz <rholtz@batcountryentertainment.com>2011-05-22 03:48:13 +0000
committerGravatarGravatar Ryan Holtz <rholtz@batcountryentertainment.com>2011-05-22 03:48:13 +0000
commit41d1d2acdc5d22ad14a9090239976554c4b860b9 (patch)
tree401ae2a62e634b4e15eb424963b3e850cda5acd3 /hlsl/phosphor.fx
parentf38312b078f435955e8d2bc3db1bb508b95ad922 (diff)
TortoiseSVN indicates these didn't get updated, this should finally nail down the texture border pixel stretching issue, nwn
Diffstat (limited to 'hlsl/phosphor.fx')
-rw-r--r--hlsl/phosphor.fx4
1 files changed, 2 insertions, 2 deletions
diff --git a/hlsl/phosphor.fx b/hlsl/phosphor.fx
index 6547e077f7b..fcfe6bdba53 100644
--- a/hlsl/phosphor.fx
+++ b/hlsl/phosphor.fx
@@ -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;
- Output.PrevCoord = Output.TexCoord;
+ Output.TexCoord = Input.TexCoord + 0.5f / float2(RawWidth, RawHeight);
+ Output.PrevCoord = Output.TexCoord + 0.5f / float2(RawWidth, RawHeight);
return Output;
}