4 corner gradient
Pick 4 different colours for each of the UV’s 4 corners.
Shader code
shader_type canvas_item;
uniform vec4 topleft:source_color;
uniform vec4 topright:source_color;
uniform vec4 bottomleft:source_color;
uniform vec4 bottomright:source_color;
void fragment() {
vec4 top = mix(topleft, topright, UV.x);
vec4 bottom = mix(bottomleft, bottomright, UV.x);
COLOR = mix(top, bottom, UV.y);
}
Why are you doing that in line 9? Isn’t it the same just using UV built-in?
🤣
Thanks, I was probably still messing with it and called it a day. Fixed now 👍🏻