diff options
Diffstat (limited to 'resources')
-rw-r--r-- | resources/oscillating_text.gdshader | 10 | ||||
-rw-r--r-- | resources/oscillating_text.gdshader.uid | 1 |
2 files changed, 11 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); +} + diff --git a/resources/oscillating_text.gdshader.uid b/resources/oscillating_text.gdshader.uid new file mode 100644 index 0000000..6d40d6a --- /dev/null +++ b/resources/oscillating_text.gdshader.uid @@ -0,0 +1 @@ +uid://d3ktu01mh01ao |