Skip to content

Commit

Permalink
glsl_shader_gen: Increase z=0 epsillon (#7408)
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaelthegreat authored Feb 5, 2024
1 parent 8afa277 commit d5a1bd0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/video_core/shader/generator/glsl_shader_gen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d5a1bd0

Please sign in to comment.