Envie/bladder.gdshader
MarcEricMartel e09681afec PIPI
2023-01-15 14:14:58 -05:00

14 lines
182 B
Plaintext

shader_type canvas_item;
uniform vec4 tex;
uniform float fill;
void fragment() {
if ((fill + 0.5) * 0.5 >= 1.0 - UV.y)
COLOR = vec4(0.1, 0.4, 0.4, 1.0);
COLOR.a = tex.a;
}