citra-emu
/
citra-canary
Archived
1
0
Fork 0

glsl_shader_gen: Increase z=0 epsillon (#7408)

This commit is contained in:
GPUCode 2024-02-05 19:53:41 +02:00 committed by GitHub
parent 8afa27718c
commit d5a1bd07f3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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;