Skip to content

Commit 440f10d

Browse files
author
Evergreen
committed
[6000.5] Fix Shader truncation warning in CopyDepthPass
1 parent 8a0f989 commit 440f10d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Packages/com.unity.render-pipelines.universal/Shaders/Utils/CopyDepthPass.hlsl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ float SampleDepth(float2 pixelCoords)
4444
{
4545
int2 coord = int2(pixelCoords);
4646
#if MSAA_SAMPLES == 1
47-
return LOAD(coord);
47+
return LOAD(coord).r;
4848
#else
4949
float outDepth = DEPTH_DEFAULT_VALUE;
5050

0 commit comments

Comments
 (0)