Procedural GLSL shader art gallery
A live WebGL exhibition hall where each plinth runs a looping 10-second pure-math fragment shader under 4 KB.
Contributors write tiny, self-contained WebGL2 GLSL fragment shaders under 4 KB with zero external textures to create seamless 10-second generative visuals. Static analyzers cap loop counts and screen out photosensitive flashing automatically, while headless rendering and pairwise community voting decide which pieces earn a gallery plinth.
How one piece works
Pick an exhibition theme
Review the 4 KB file limit, seamless 10-second loop rule, and WebGL2 fragment-shader safety bounds.
Code a 4 KB shader
Write an original pure-math GLSL fragment shader with no external textures, testing frame rate and looping locally.
Safety checks and voting
A program enforces loop caps, flash limits, and non-blank motion via SwiftShader; pairwise community votes curate plinths.
What you would make
One original WebGL2 GLSL fragment shader under 4 KB with zero textures plus a JSON title and short artist note.
What it becomes
A walkable browser exhibition hall where visitors tour hundreds of glowing pure-math artworks, read the compact source beside each canvas, and remix freely under MIT or CC0.
Why it is worth doing
- Tiny 4 KB pure-math artworks carry zero bitmap copyright risk and recall classic demoscene size-coding craft.
- Publishing under MIT or CC0 lets indie game and web developers reuse shaders freely, unlike non-commercial defaults elsewhere.
- A large shader community already exists: The Book of Shaders has 7,088 GitHub stars and GLSL Sandbox has 1,689 stars.
- Automated static loop caps and WCAG flash checks protect visitor browsers and prevent photosensitive strobing.
How a piece is checked
A program validates GLSL syntax with glslang, caps loops at 128 iterations, renders 30 frames in SwiftShader to confirm seamless motion and WCAG flash safety (at most three flashes per second), and queues previews for community voting.
Before this can open
A GLSL AST loop-cap linter, containerized SwiftShader preview renderer, WCAG flash detector, pairwise voting interface, and a 3D gallery viewer with reduced-motion fallbacks.
Read more
- The Book of ShadersOpen-source GLSL guide with 7,088 GitHub stars introducing fragment-shader math.
- Inigo Quilez 3D Distance FunctionsCanonical signed-distance-function primitives used in compact pure-math 3D shaders.
- Khronos glslang reference validatorOfficial GLSL parser and validator with 3,630 GitHub stars for WebGL2 checks.
- Google SwiftShader software rendererApache-2.0 CPU WebGL renderer with 2,572 GitHub stars enabling headless frame checks.
- W3C WCAG 2.1 Three Flashes guidanceAccessibility standard defining the three-flashes-per-second limit for seizure safety.
Ask us to open it
Tell us why you would like this project to open.



