Build a Shader Playground
Build a live GLSL shader editor with real-time preview, uniforms, and preset management.
Requirements
Split-pane: code editor on the left, WebGL preview on the rightLive recompilation as you type (debounced, ~300ms)Built-in uniforms: u_time, u_resolution, u_mouseShader error display with line numbersAt least 5 preset shaders (plasma, raymarching, fractal, water, fire)Fullscreen preview modeCopy shareable URL with encoded shaderTechnical Notes
Use WebGL2 with a fullscreen quad. The editor can use CodeMirror, Monaco, or a simple textarea with syntax highlighting.
Bonus Points
Custom uniform inputs (color pickers, sliders)Screenshot/GIF exportVertex shader editing alongside fragment shader