Revert "adding mask options"

This reverts commit c74dccf1cf.
This commit is contained in:
2025-07-20 02:12:22 +10:00
parent d345e700fc
commit f226c14c00
15 changed files with 33 additions and 397 deletions

View File

@@ -1,8 +1,17 @@
shader_type canvas_item;
uniform vec4 outline_color : source_color = vec4(1.0, 0.0, 0.0, 0.3);
uniform float speed;
uniform sampler2D backImg: repeat_enable;
uniform sampler2D palette;
uniform float palette_speed = 0.1;
void fragment(){
vec4 tex = texture(TEXTURE, UV);
COLOR = vec4(outline_color.rgb, tex.a * outline_color.a);
vec2 scroll = vec2(1.0,0.0) * TIME * speed;
vec4 tex = texture(TEXTURE, (UV));
float palette_swap = mod(tex.r - TIME * palette_speed, 1.0);
COLOR = vec4(texture(palette, vec2(palette_swap, 0)).rgb, tex.a);
}