15 lines
348 B
HLSL
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));
|
|
}
|