From ac9d0d7993595cb644c64a2618fe78487ac3afd2 Mon Sep 17 00:00:00 2001 From: MihailRis Date: Thu, 18 Jan 2024 23:27:33 +0300 Subject: [PATCH] shader fix --- res/shaders/main.glslf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/res/shaders/main.glslf b/res/shaders/main.glslf index 498ef490..97e49cfb 100644 --- a/res/shaders/main.glslf +++ b/res/shaders/main.glslf @@ -16,7 +16,7 @@ void main(){ float depth = (a_distance/256.0); float alpha = a_color.a * tex_color.a; // anyway it's any alpha-test alternative required - if (alpha < 0.5f) + if (alpha < 0.3f) discard; f_color = mix(a_color * tex_color, vec4(fogColor,1.0), min(1.0, pow(depth*u_fogFactor, u_fogCurve))); f_color.a = alpha;