diff options
author | 2011-05-28 00:49:22 +0000 | |
---|---|---|
committer | 2011-05-28 00:49:22 +0000 | |
commit | 59d38593e8d317236af9702cb1607abdbef0cad8 (patch) | |
tree | 3e06d38576387894bf4c2dd50a3d5b4839b976da /hlsl/post.fx | |
parent | 3e437e09f04166aac3b9e6aa60ae4ea7865cccda (diff) |
MAMETesters bugs fixed:
- 04361: all: When using HLSL screen size not correct
nwn: Frickin' finally...
Diffstat (limited to 'hlsl/post.fx')
-rw-r--r-- | hlsl/post.fx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/hlsl/post.fx b/hlsl/post.fx index 2128dc222e1..b79f069ce33 100644 --- a/hlsl/post.fx +++ b/hlsl/post.fx @@ -77,7 +77,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 + 0.5f / float2(RawWidth, RawHeight); + Output.TexCoord = Input.TexCoord + 0.5f / float2(TargetWidth, TargetHeight); //float Zoom = 32.0f; //Output.TexCoord /= Zoom; @@ -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.0f / RawWidth)) ? -1 : 1); - clip((BaseCoord.y > (1.0f / HeightRatio + 1.0f / RawHeight)) ? -1 : 1); + //clip((BaseCoord.x > 1.0f / WidthRatio) ? -1 : 1); + //clip((BaseCoord.y > 1.0f / HeightRatio) ? -1 : 1); // -- Scanline Simulation -- float InnerSine = BaseCoord.y * RawHeight * ScanlineScale + 0.5f; |