mirror of
https://github.com/holub/mame
synced 2025-04-20 23:42:22 +03:00
Fixing clamping on the bottom/right edge, nwn
This commit is contained in:
parent
59d38593e8
commit
a8919fa63b
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user