Shader Playground
Write GLSL fragment shaders with a live preview. Use time, resolution and mouse uniforms, start from examples, and export GLSL or Three.js code.
Runs in your browserExports GLSL, Three.js, PNGUses your GPU (WebGL)
About this tool
- 1Pick an example or start blank.
- 2Edit the fragment shader. It recompiles as you type.
- 3Use uTime, uResolution and uMouse.
- 4Copy GLSL or a Three.js ShaderMaterial, or save a PNG.
How it works
Your code is compiled into a WebGL fragment shader on a full-screen quad. Compile errors are parsed and shown next to the line. Shaders run only on your GPU and have no network access.
Use cases
- Learning shaders
- Prototyping backgrounds
- Making shader art
Questions
Which GLSL version?
GLSL ES 3.00 (WebGL 2).
Is my code saved?
Your current shader is kept in this browser's local storage only.
Can I use it in Three.js?
Yes. Copy the ShaderMaterial export.
Related tools
- PBR Material Viewer3D Studio
- Procedural Material Generator3D Studio
- Normal Map Generator3D Studio
- Height Map Visualizer3D Studio
- 3D Blob Generator3D Studio
- All tools in 3D Studio
How the algorithms workHow your files are handledUsing what you export