summaryrefslogtreecommitdiffstatshomepage
path: root/hlsl
diff options
context:
space:
mode:
authorGravatarGravatar Ryan Holtz <rholtz@batcountryentertainment.com>2011-05-28 00:51:24 +0000
committerGravatarGravatar Ryan Holtz <rholtz@batcountryentertainment.com>2011-05-28 00:51:24 +0000
commita8919fa63b711c9b03d16cd2d11d2e3fffaac5cd (patch)
treeeacdda9570bafd399c95902e55d043ee1ae3243a /hlsl
parent59d38593e8d317236af9702cb1607abdbef0cad8 (diff)
Fixing clamping on the bottom/right edge, nwn
Diffstat (limited to 'hlsl')
-rw-r--r--hlsl/post.fx4
1 files changed, 2 insertions, 2 deletions
diff --git a/hlsl/post.fx b/hlsl/post.fx
index b79f069ce33..a02c3c6e97b 100644
--- a/hlsl/post.fx
+++ b/hlsl/post.fx
@@ -150,8 +150,8 @@ float4 ps_main(PS_INPUT Input) : COLOR
// -- Alpha Clipping (1px border in drawd3d does not work for some reason) --
clip((BaseCoord.x < WidthRatio / RawWidth) ? -1 : 1);
clip((BaseCoord.y < HeightRatio / RawHeight) ? -1 : 1);
- //clip((BaseCoord.x > 1.0f / WidthRatio) ? -1 : 1);
- //clip((BaseCoord.y > 1.0f / HeightRatio) ? -1 : 1);
+ clip((BaseCoord.x > (1.0f / WidthRatio + 1.0f / RawWidth + 1.0f / TargetWidth)) ? -1 : 1);
+ clip((BaseCoord.y > (1.0f / HeightRatio + 1.0f / RawHeight + 1.0f / TargetHeight)) ? -1 : 1);
// -- Scanline Simulation --
float InnerSine = BaseCoord.y * RawHeight * ScanlineScale + 0.5f;