summaryrefslogtreecommitdiffstatshomepage
path: root/hlsl/post.fx
diff options
context:
space:
mode:
author Ryan Holtz <rholtz@batcountryentertainment.com>2011-05-22 03:48:13 +0000
committer Ryan Holtz <rholtz@batcountryentertainment.com>2011-05-22 03:48:13 +0000
commit41d1d2acdc5d22ad14a9090239976554c4b860b9 (patch)
tree401ae2a62e634b4e15eb424963b3e850cda5acd3 /hlsl/post.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/post.fx')
-rw-r--r--hlsl/post.fx6
1 files changed, 3 insertions, 3 deletions
diff --git a/hlsl/post.fx b/hlsl/post.fx
index 78fe988c26d..7dae7446dce 100644
--- a/hlsl/post.fx
+++ b/hlsl/post.fx
@@ -80,7 +80,7 @@ VS_OUTPUT vs_main(VS_INPUT Input)
Output.Position.y -= 0.5f;
Output.Position *= float4(2.0f, 2.0f, 1.0f, 1.0f);
Output.Color = Input.Color;
- Output.TexCoord = Input.TexCoord;
+ Output.TexCoord = Input.TexCoord + 0.5f / float2(RawWidth, RawHeight);
Output.ExtraInfo = Input.ExtraInfo;
//Output.TexCoord /= 16.0f;
@@ -151,8 +151,8 @@ float4 ps_main(PS_INPUT Input) : COLOR
float4 BaseTexel = tex2D(DiffuseSampler, BaseCoord);
// -- Alpha Clipping (1px border in drawd3d does not work for some reason) --
- clip((ScreenClipCoord.x < 0.0f / TargetWidth) ? -1 : 1);
- clip((ScreenClipCoord.y < 0.0f / TargetHeight) ? -1 : 1);
+ clip((ScreenClipCoord.x < 1.0f / TargetWidth) ? -1 : 1);
+ clip((ScreenClipCoord.y < 1.0f / TargetHeight) ? -1 : 1);
clip((ScreenClipCoord.x > 1.0f / WidthRatio) ? -1 : 1);
clip((ScreenClipCoord.y > 1.0f / HeightRatio) ? -1 : 1);