mirror of
https://github.com/holub/mame
synced 2025-04-17 05:53:36 +03:00
hlsl: Fixed regression in distortion shader. [Ryan Holtz]
This commit is contained in:
parent
c64e2da46d
commit
54cdb214e4
@ -284,7 +284,7 @@ float4 ps_main(PS_INPUT Input) : COLOR
|
|||||||
if (BaseCoord.x < 0.0f - TexelDims.x || BaseCoord.y < 0.0f - TexelDims.y ||
|
if (BaseCoord.x < 0.0f - TexelDims.x || BaseCoord.y < 0.0f - TexelDims.y ||
|
||||||
BaseCoord.x > 1.0f + TexelDims.x || BaseCoord.y > 1.0f + TexelDims.y)
|
BaseCoord.x > 1.0f + TexelDims.x || BaseCoord.y > 1.0f + TexelDims.y)
|
||||||
{
|
{
|
||||||
discard;
|
return float4(0, 0, 0, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Color
|
// Color
|
||||||
|
Loading…
Reference in New Issue
Block a user