From d5a1bd07f3c8f1b37f6f153b899892753fde6edd Mon Sep 17 00:00:00 2001 From: GPUCode <47210458+GPUCode@users.noreply.github.com> Date: Mon, 5 Feb 2024 19:53:41 +0200 Subject: [PATCH] glsl_shader_gen: Increase z=0 epsillon (#7408) --- src/video_core/shader/generator/glsl_shader_gen.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/video_core/shader/generator/glsl_shader_gen.cpp b/src/video_core/shader/generator/glsl_shader_gen.cpp index 82c0486d0..c91d63131 100644 --- a/src/video_core/shader/generator/glsl_shader_gen.cpp +++ b/src/video_core/shader/generator/glsl_shader_gen.cpp @@ -40,7 +40,7 @@ layout (binding = 1, std140) uniform vs_data { vec4 clip_coef; }; -const vec2 EPSILON_Z = vec2(0.00000001f, -1.00001f); +const vec2 EPSILON_Z = vec2(0.000001f, -1.00001f); vec4 SanitizeVertex(vec4 vtx_pos) { float ndc_z = vtx_pos.z / vtx_pos.w;