Cleanup: Overlay: Avoid non-uniform control flow for texture sampling

Fix missing part of e6f8924870
This commit is contained in:
Clément Foucault
2024-10-16 18:20:24 +02:00
parent 0c6f0aa07b
commit 1dd1853298

View File

@@ -61,8 +61,8 @@ void main()
uv_offset.x = 0.0;
}
depth_min = min(depth_min, texture(depthTex, uv - texel_uv_size).r);
depth_min = min(depth_min, texture(depthTex, uv + texel_uv_size).r);
depth_min = min(depth_min, texture(depthTex, uv - uv_offset).r);
depth_min = min(depth_min, texture(depthTex, uv + uv_offset).r);
float delta = abs(depth_occluder - depth_min);