ile-de-test/addons/waterways/shaders/gui/gradient.gdshader
2023-10-05 20:02:23 +02:00

9 lines
No EOL
217 B
Text

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;
}