20 Stars
https://gyazo.com/2e0481d5b501b9eb9e0e45df7150f693
code:glsl
precision mediump float;
uniform float time;
uniform vec2 mouse;
uniform vec2 resolution;
void main( void ) {
const float ncircle = 20.0;
const float orbit_radius = 0.4;
const float circle_radius = 0.01;
vec2 pos = (gl_FragCoord.xy - 0.5 * resolution) / min(resolution.x, resolution.y);
vec3 color = vec3(0);
for(float angle = 0.0; angle < 2.0 * 3.14; angle += 2.0 * 3.14 / ncircle) {
float x = orbit_radius * cos(angle);
float y = orbit_radius * sin(angle);
color += circle_radius / length(pos - vec2(x, y)) * vec3(1);
}
gl_FragColor = vec4(color, 1);
}