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;
}
Live Preview
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.

More from NaiName

Related shaders

guest

1 Comment
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
stig6
3 months ago

it only jiggles in viewport but not in the game