Skip to content
EASE+ Creative

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

  1. 1Pick an example or start blank.
  2. 2Edit the fragment shader. It recompiles as you type.
  3. 3Use uTime, uResolution and uMouse.
  4. 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

How the algorithms workHow your files are handledUsing what you export