2D Flag Shader

not actually mine

Shader code
shader_type canvas_item;

void fragment(){
	 vec2 distortedUV = UV;
	distortedUV.y += sin(distortedUV.x * 7.5 + TIME*2.0) * 0.05;
	COLOR = texture(TEXTURE, distortedUV);
}
Tags
2d, animation, flag
The shader code and all code snippets in this post are under CC0 license and can be used freely without the author's permission. Images and videos, and assets depicted in those, do not fall under this license. For more info, see our License terms.

Related shaders

3D simple animated flag shader

2D simple animated flag shader

Wave FLag

Subscribe
Notify of
guest

1 Comment
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
sajbear666
2 months ago

Nice and simple!