Add velocities and padding to the particle data
[lovr-particles] / shaders / particles.frag
1 in vec2 uv;
2 in vec4 particleColor;
3
4 vec4 color(vec4 graphicsColor, sampler2D image, vec2 _uv) {
5 float alpha = 1.0 - (distance(uv, vec2(0.5)) * 2.0);
6 graphicsColor.a *= alpha;
7 return graphicsColor * particleColor;
8 }