Skip to content

Instantly share code, notes, and snippets.

@programmeruser2
Created February 16, 2023 01:42
Show Gist options
  • Save programmeruser2/39a7678d276a6ff046c1e3df4ac02011 to your computer and use it in GitHub Desktop.
Save programmeruser2/39a7678d276a6ff046c1e3df4ac02011 to your computer and use it in GitHub Desktop.
// Run on ShaderToy
void mainImage(out vec4 fragColor, in vec2 fragCoord) {
fragColor = vec4(distance(fragCoord, iResolution.xy/2.0)/(sqrt(iResolution.x*iResolution.x + iResolution.y*iResolution.y)/2.0), 0.0, 1.0, 1.0);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment