Spray Supervisor

This commit is contained in:
2026-01-25 21:57:27 +01:00
parent 930d5b27b0
commit b3d31dffa9
8 changed files with 138 additions and 10 deletions
+12
View File
@@ -0,0 +1,12 @@
shader_type canvas_item;
uniform sampler2D noise_tex;
uniform float progress : hint_range(0.0, 1.0) = 0.0;
uniform float softness : hint_range(0.001, 0.2) = 0.05;
void fragment() {
vec4 img = texture(TEXTURE, UV);
float noise = texture(noise_tex, UV).r;
float alpha = 1.0 - smoothstep(progress - softness, progress + softness, noise);
COLOR = vec4(img.rgb, img.a * alpha);
}