2023-01-15 14:14:58 -05:00
|
|
|
shader_type canvas_item;
|
|
|
|
|
|
|
|
uniform float fill;
|
|
|
|
|
|
|
|
void fragment() {
|
|
|
|
if ((fill + 0.5) * 0.5 >= 1.0 - UV.y)
|
2023-01-15 15:14:17 -05:00
|
|
|
COLOR = vec4(1, 1, 0.1, texture(TEXTURE, UV).a);
|
2023-01-15 14:14:58 -05:00
|
|
|
else COLOR = texture(TEXTURE, UV);
|
|
|
|
}
|