make background (judgement-line) animatable

This commit is contained in:
msk
2023-09-17 16:26:08 -07:00
parent fe40630617
commit 0ac72faf87
6 changed files with 163 additions and 108 deletions
+15
View File
@@ -0,0 +1,15 @@
shader_type canvas_item;
uniform sampler2D mask;
void fragment( )
{
vec4 mask_color = texture(mask, UV).rgba;
vec4 sprite_color = texture(TEXTURE, UV).rgba;
if (mask_color.a == 0.0)
{
sprite_color.a = 0.0;
}
COLOR = sprite_color;
}