Shaders in Godot
Setting up
Very basic shader code to do something on the white canvas
shader_type canvas_item;
void vertex() {
VERTEX += UV;
}
void fragment() {
float b = sin(TIME);
COLOR = vec4(UV, b, 1);
}
void light() {
LIGHT += LIGHT_COLOR + vec4(1,1,1,1);
}
result