text jiggle shader

I have a very simple shader that I want to share. Just apply it to the text and it will work.

Shader code
shader_type canvas_item;

uniform float jiggle = 5.0;
uniform float speed = 2.0;

void vertex() {
	VERTEX.y += VERTEX_ID % 2 == 0 ? cos((TIME * speed) + VERTEX.x + float(VERTEX_ID * 10)) * jiggle : sin((TIME * speed) + VERTEX.x + float(VERTEX_ID * 10)) * jiggle;
}
Tags
text
The shader code and all code snippets in this post are under MIT license and can be used freely. Images and videos, and assets depicted in those, do not fall under this license. For more info, see our License terms.

Related shaders

Wavy & Colorable Text Shader

Pixel Text Shader

Slide Down & Up Text Effect

guest

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments