Medium EffectsAnimated
Checker tunnel
Fly down an endless checkered tunnel.
How this challenge works
You write a fragment shader that draws the picture above, live in your browser. A match bar shows how close you are, and the score combines accuracy, code size (the par is 353 characters in Unity (Built-in)) and GPU speed. Work in HLSL, GLSL, WGSL, Metal or Godot and export the result when you are done.
The numbers you need
- Polar
r = length(p), a = atan2(p.y, p.x)- Depth u
0.3 / r + time- Around v
a / 3.14159 * 4.0- Checker
abs(fmod(floor(u * 3.0) + floor(v), 2.0))- Colors
float3(0.1,0.1,0.3) / float3(0.9,0.5,0.2)- Darken the center
col *= smoothstep(0.0, 0.25, r)
Solve it in your language
Unity (Built-in), Unity (URP), Unreal, Shadertoy / WebGL, OpenGL (LWJGL, raylib), three.js, GameMaker, LÖVE (Lua), Godot, Apple (iOS, macOS), WebGPU / Bevy.
Start coding