lua: pack.get_folder(pack_name) + shader fix

This commit is contained in:
MihailRis
2024-01-17 23:10:06 +03:00
parent 7d35356f9d
commit d7f2771da4
5 changed files with 31 additions and 10 deletions
+1 -1
View File
@@ -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.1f)
if (alpha < 0.5f)
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;