ile-de-test/addons/waterways/shaders/gui/gradient.gdshader

9 lines
217 B
Text
Raw Normal View History

2023-10-05 18:02:23 +00:00
shader_type canvas_item;
uniform vec4 color1 = vec4(0.25, 0.25, 0.70, 1.0);
uniform vec4 color2 = vec4(0.25, 0.50, 0.70, 1.0);
void fragment() {
vec4 mixed_color = mix(color1, color2, UV.x);
COLOR = mixed_color;
}