Files
2025-05-18 13:04:45 +08:00

15 lines
444 B
HLSL

// Copyright Epic Games, Inc. All Rights Reserved.
#include "AdjustUVCommon.ush"
#include "/Plugin/TextureGraph/NormalsCommon.ush"
Texture2D SourceTex;
float Renormalize;
float4 FSH_AdjustNormals(in float2 uv : TEXCOORD0) : SV_Target0
{
float4 blob = SourceTex.Sample(SamplerStates_NoBorder, uv);
float3 conformed = Conform(blob.rgb, Renormalize).rgb;
float3 emissive = (conformed * 0.5 + 0.5);
return fixed4(emissive.rgb, blob.a);
}