Files
UnrealEngine/Engine/Plugins/VirtualProduction/DynamicMaterial/Shaders/DMAlphaOneMinusPS.usf
2025-05-18 13:04:45 +08:00

18 lines
405 B
HLSL

// Copyright Epic Games, Inc. All Rights Reserved.
#include "/Engine/Private/Common.ush"
Texture2D InputTexture;
SamplerState InputSampler;
// Shader to apply 1-x to the alpha channel
void MainPS(
noperspective float4 UVAndScreenPos : TEXCOORD0,
out float4 OutColor : SV_Target0
)
{
float2 UV = UVAndScreenPos.xy;
OutColor = InputTexture.Sample(InputSampler, UV);
OutColor.a = 1.f - OutColor.a;
}