All my stuff got corrupted by LFS :p

This commit is contained in:
June
2026-03-24 22:48:55 -07:00
parent dfb3cabfa6
commit ba6f0017ed
4446 changed files with 519 additions and 57385 deletions

View File

@@ -1,19 +0,0 @@
shader_type canvas_item;
// Parameters
uniform float alpha_threshold : hint_range(0.0, 1.0) = 0.1; // below this = fully transparent
uniform float alpha_modifier : hint_range(0.0, 1.0) = 1.0; // global alpha multiplier
void fragment() {
// Sample the texture
vec4 tex_color = texture(TEXTURE, UV);
// Use the texture's alpha channel directly
float alpha = tex_color.a < alpha_threshold ? 0.0 : tex_color.a;
// Apply global modifier
alpha *= alpha_modifier;
// Preserve original RGB, apply computed alpha
COLOR = vec4(tex_color.rgb, alpha);
}