Impact VFX

This is a minimal Shader to create an impact VFX by running a texture along a circular plane. You can control the cutoff alpha, the speed and Y-coordinate texture repetition. Note that a circular plane mesh is required and the UVs should look like the blender screenshot for it to work properly.

Shader code
shader_type spatial;
uniform sampler2D tex : filter_nearest;
uniform float speed;
uniform float stretchY;
uniform float alpha;
void fragment() {
	ALBEDO=texture(tex,vec2(UV.x*stretchY,UV.y+timefactor)).rgb;
	ALPHA=texture(tex,vec2(UV.x*stretchY,UV.y+timefactor)).a;
	ALPHA*=UV.y*alpha;
}
Tags
impact, pixel, stylized, vfx
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.

More from FrankTheApe

Kuwahara Shader

Variable Dot Pattern

Related shaders

2d sprite based vfx gradient shader

Shield with impact visualisation

Energy shield with impact effect

Subscribe
Notify of
guest

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments