mirror of
https://github.com/cyberboy666/r_e_c_u_r.git
synced 2025-12-12 19:30:11 +01:00
18 lines
338 B
GLSL
18 lines
338 B
GLSL
precision mediump float;
|
|
uniform float u_time;
|
|
uniform vec2 u_resolution;
|
|
|
|
void main(void) {
|
|
|
|
vec2 center = u_resolution / 2.0;
|
|
vec2 pos = gl_FragCoord.xy;
|
|
vec2 dist = center - pos;
|
|
float len = length(dist);
|
|
|
|
vec3 color = vec3(0.0, 0.0, 0.0);
|
|
|
|
if (len < 5.0){ color.r = 1.0; }
|
|
|
|
gl_FragColor = vec4(color, 1.0);
|
|
}
|