Loading...

Created by Kyle Simmons

sh8r.org is a place to write WebGL shaders in your browser, watch them run, and publish them. No install, and no account needed to look around.

Getting started

The editor opens on a working shader. Change the fragment source, press Compile, and the canvas updates. Nothing is uploaded until you ask for it.

A shader here is more than one fragment program: you can add draws, uniforms, framebuffers and vertex buffers, and read one pass into the next through u_channel0. The editor's Help explains its panes and lists every shortcut, and the Log pane links compile errors back to the line that caused them.

Browse shows what other people have published. The cards on screen run live. Clicking one opens its page: the shader full size, who made it, and what people said about it.

To publish, make an account and upload from the editor's File menu. Your shaders then appear on your profile and in Browse, and you can pick two of them as your profile's icon and background.

What a shader can be

Not only a fragment shader. Each of these is one document, running live, and each opens in the editor to take apart.

Whether a shader runs the same everywhere is another question. The device lab measures what the WebGL2 in your browser can do, from its limits to what each texture format and the shading language itself do on it, and shows how many other devices agree.

Forks

Open anyone's shader in the editor and upload it under your name, and it is a fork: it links back to the original, and the original counts it.

A shader's description can hold code: put it in ```glsl fences and it is highlighted. Put a shader's link on a line of its own and it runs right there.

Preferences

Colours, spacing and text size are yours to set, from Manage or from the editor's Preferences window. They are stored in your browser, and carried between devices once you are signed in.

Feedback

Found a bug, or want something? Write to kyle@sh8r.org. Export your shaders from the editor now and then, so you always have your own copy.

The small print

Terms of Service · Privacy Policy