Online GLSL shader editor for images

Write a fragment shader, run it on your own photo or video, and get a slider for every parameter. Your shader stacks with RasterLab’s built-in effects and exports like any of them.

Original photo before the Frost Code preset effectA moonlit lotus in the Frost Code stack of halo dots, thermal colour, ASCII and grain
Before / after: Frost Code presetPro
Overview

A shader editor built around images

Most online shader editors start from a blank screen. RasterLab starts from your picture: a custom shader receives the incoming image as u_texture, along with its resolution and the time, and writes one colour per pixel to gl_FragColor. It renders with WebGL 1, so shaders are written in GLSL ES 1.00.

Every `uniform float u_name;` you declare becomes a slider in the Settings panel, so you can tune a shader without editing numbers in code. Compile errors show in the editor while the last working version keeps rendering. A helper library adds hashing, value noise, rotation, RGB/HSV conversion and blend modes.

Custom shaders are free and unlimited. They sit in the same stack as the built-in effects, so you can put your own shader after ASCII Art or before Grain, and export the result as PNG, JPG, GIF or video. They are saved in your browser.

Examples

Before and after

Original photo before the Dream preset effectA portrait in the Dream stack of bloom, colour shift, vignette and CRT
Before / after: Dream presetPro
Step by step

How to write your first shader

  1. 1

    Open the studio and load an image.

  2. 2

    Open the Custom tab and create a new custom shader, then click Add to Stack.

  3. 3

    Edit the code: read the pixel with texture2D(u_texture, v_uv), change it, and write it to gl_FragColor.

  4. 4

    Declare uniform float u_amount; to get an Amount slider, then click Run Shader.

  5. 5

    Stack it with built-in effects and export. The docs have recipes for pixelate, halftone dots, blur, duotone and edge detection.

Use cases

What people make with it

  • Prototyping image filters and post-processing effects on real photos
  • Learning GLSL with instant visual feedback
  • Porting a Shadertoy effect to work on an image (the docs list the renames)
  • Combining your own code with ready-made ASCII, dither and glass effects
Effects

Built-in effects to stack your shader with

  • Real typed characters mapped to the brightness of the picture, in mono, colour or green-on-black terminal style.

  • Dither

    Free

    Bayer, halftone, line and noise dithering, snapped to retro palettes such as Game Boy, CGA, PICO-8 or 1-bit.

  • Glitch

    Free

    Digital block displacement with colour-channel tearing, animated over time.

  • A curved CRT screen, plain scanlines, or crushed VHS static with tracking glitches.

  • Bloom

    Free

    Soft glow bleeding out of the bright parts of the image.

  • Grain

    Free

    Animated analog film grain or digital static.

Free effects need no account. Pro effects are part of RasterLab Pro.

FAQ

Questions

Is the shader editor free?

Yes. Writing, saving and stacking custom GLSL shaders is free and unlimited, with no account.

Which GLSL version does it use?

GLSL ES 1.00, because RasterLab renders with WebGL 1. Use texture2D and gl_FragColor rather than texture and out variables.

Can I paste Shadertoy code?

With small changes: rename fragColor to gl_FragColor, iResolution to u_resolution, iTime to u_time, iChannel0 to u_texture and texture to texture2D. The docs list every rename.

Where are my shaders saved?

In your browser’s local storage. They survive reloads, but don’t sync between browsers or devices, so keep a copy of code you care about.

Can my shader animate?

Yes. Use u_time, and export a GIF or video to capture the motion.

Related tools

Keep exploring

Try it on your own image.

Runs in your desktop browser. No install, no upload, and no account for the free effects.

Open the shader editor