Files
UnrealEngine/Engine/Shaders/Private/HairStrands/HairStrandsVisibilityFillOpaqueDepthPS.usf
2025-05-18 13:04:45 +08:00

15 lines
348 B
HLSL

// Copyright Epic Games, Inc. All Rights Reserved.
#include "../Common.ush"
#include "../SceneTexturesCommon.ush"
Texture2D<float> SceneDepthTexture;
void MainPS(
in FScreenVertexOutput Input,
out float OutDepth: SV_DEPTH)
{
const uint2 PixelCoord = uint2(floor(Input.Position.xy));
OutDepth = SceneDepthTexture.Load(uint3(PixelCoord,0));
}