diff options
Diffstat (limited to 'resources/oscillating_text.gdshader')
-rw-r--r-- | resources/oscillating_text.gdshader | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/resources/oscillating_text.gdshader b/resources/oscillating_text.gdshader new file mode 100644 index 0000000..cd26160 --- /dev/null +++ b/resources/oscillating_text.gdshader @@ -0,0 +1,10 @@ +shader_type canvas_item; + +uniform float height = 2.0; +uniform float freq = 3.0; +uniform float speed = 5.0; + +void vertex() { + VERTEX.y += height * sin((freq * UV.x) + speed * TIME); +} + |