Files
UnrealEngine/Engine/Shaders/Private/SlateMaskingShader.usf
2025-05-18 13:04:45 +08:00

23 lines
570 B
HLSL

// Copyright Epic Games, Inc. All Rights Reserved.
#include "Common.ush"
float4 MaskRectPacked[2];
struct VertexToPixelInterpolants
{
float4 Position : SV_POSITION;
};
VertexToPixelInterpolants MainVS(in uint InPosition : ATTRIBUTE0)
{
VertexToPixelInterpolants VOut = (VertexToPixelInterpolants)0;
const float2 MaskRect[4] = { MaskRectPacked[0].xy, MaskRectPacked[0].zw, MaskRectPacked[1].xy, MaskRectPacked[1].zw };
VOut.Position = float4(MaskRect[InPosition], 0, 1);
return VOut;
}
float4 MainPS(VertexToPixelInterpolants VIn) : SV_Target0
{
return 1;
}