capri/assets/shaders/orbit.gdshader
2025-03-09 05:56:20 -04:00

9 lines
No EOL
181 B
Text

shader_type canvas_item;
uniform float radius = 0.0;
uniform float speed = 0.0;
void vertex() {
VERTEX.x += cos(TIME * speed) * radius;
VERTEX.y += sin(TIME * speed) * radius;
}