You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
20 lines
610 B
Plaintext
20 lines
610 B
Plaintext
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
/*=========================================================================================
|
|
GameplayMediaEncoderShaders.usf: utility shaders for the GameplayMediaEncoder module
|
|
=========================================================================================*/
|
|
|
|
#include "Common.ush"
|
|
|
|
Texture2D InTexture;
|
|
SamplerState InTextureSampler;
|
|
|
|
// Swizzle color channels from RGBA to BGRA
|
|
void ScreenSwizzlePS(
|
|
FScreenVertexOutput Input,
|
|
out float4 OutColor : SV_Target0
|
|
)
|
|
{
|
|
OutColor = Texture2DSample(InTexture, InTextureSampler, Input.UV).bgra;
|
|
}
|