Files
Brandyn / Techy fcc1b09210 init
2026-04-04 15:40:51 -05:00

20 lines
452 B
HLSL

// Copyright Epic Games, Inc. All Rights Reserved.
#include "/Engine/Private/Common.ush"
Texture2D InputTexture;
SamplerState InputSampler;
float2 ScaleUV;
static const float2 CenterUV = 0.5f;
void MainPS(
noperspective float4 InUVAndScreenPos : TEXCOORD0,
out float4 OutColor : SV_Target0
)
{
float2 UV = InUVAndScreenPos.xy;
UV = ((UV - CenterUV) * ScaleUV) + CenterUV;
OutColor = InputTexture.Sample(InputSampler, UV);
}