shader_type canvas_item; uniform vec4 top : source_color; uniform vec4 bottom : source_color; void fragment() { COLOR = mix(top, bottom, UV.y); }