Skip to content

Commit 0330cb5

Browse files
pema99Evergreen
authored andcommitted
Fix SSR depth refinement failing on Android phone due to driver bug.
1 parent 750aaa8 commit 0330cb5

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Packages/com.unity.render-pipelines.universal/ShaderLibrary/ComputeScreenSpaceReflection.hlsl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@ bool TraceScreenSpaceRay(
176176

177177
bool aboveBase = !COMPARE_DEVICE_DEPTH_CLOSER(rayDepth, rawSceneDepth);
178178
bool belowFloor = COMPARE_DEVICE_DEPTH_CLOSER(rayDepth, rawSceneDepth * GetThicknessScale() + GetThicknessBias());
179+
[branch]
179180
if (aboveBase && belowFloor)
180181
{
181182
hitFine = COMPARE_DEVICE_DEPTH_CLOSER(rayDepth, rawSceneDepth * GetThicknessScaleFine() + GetThicknessBiasFine());

0 commit comments

Comments
 (0)