Files
UnrealEngineUWP/Engine/Shaders/Private/ScreenPass.usf
Marc Audy 360d078ca3 Second batch of remaining Engine copyright updates.
#rnx
#rb none

[CL 10871248 by Marc Audy in Main branch]
2019-12-27 09:26:59 -05:00

23 lines
567 B
Plaintext

// Copyright Epic Games, Inc. All Rights Reserved.
#include "Common.ush"
Texture2D InputTexture;
SamplerState InputSampler;
void ScreenPassVS(
in float4 InPosition : ATTRIBUTE0,
in float2 InTexCoord : ATTRIBUTE1,
out noperspective float4 OutUVAndScreenPos : TEXCOORD0,
out float4 OutPosition : SV_POSITION)
{
DrawRectangle(InPosition, InTexCoord, OutPosition, OutUVAndScreenPos);
}
float4 CopyRectPS(
noperspective float4 UVAndScreenPos : TEXCOORD0
) : SV_Target0
{
float2 UV = UVAndScreenPos.xy;
return Texture2DSample(InputTexture, InputSampler, UV);
}