Skip to content

Instantly share code, notes, and snippets.

@rutvik110
Last active June 8, 2022 03:49
Show Gist options
  • Save rutvik110/794bf51580732cf85f3d11916aa38067 to your computer and use it in GitHub Desktop.
Save rutvik110/794bf51580732cf85f3d11916aa38067 to your computer and use it in GitHub Desktop.
uniform float u_time;
vec4 fragment(in vec2 uv,in vec2 fragCoord){
float l=u_time;
vec2 uv2,p=uv;
uv2=p;
p-=.5;
l=length(p);
uv2+=abs(sin(l*10.-u_time));
float point=.01/length(mod(uv2,1.)-.5);
vec3 c=vec3(point);
return vec4(c/l,u_time);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment