About this file
A soft gradient that flows slowly across the frame, printed in dots. A bright glow drifts over a slanted ramp and slow waves bend both, and the whole picture is set in paper and ink only, the look of 1-bit screens and old print. Every dot is a whole square of pixels, so it stays crisp at any size.
Choose the pattern (8 x 8 or 4 x 4 ordered dither, or an even noise), the dot size, and one ink or two: with two inks it prints a three-tone gradient from dark ink through a second colour to paper. Colours, shape size, flow, contrast and balance are all settings. The demo has presets for ink on cream, a two-ink sunset, blueprint, amber screen, mint grain and a fine version, plus a Behind text preset.
Made for hero sections, newsletters, podcast and portfolio pages, album and event sites, stream backgrounds and video. Its reduced-motion setting holds it still on its poster frame for visitors who ask for less motion, and a veil setting lightens it towards the paper so text reads on top. At the Behind text preset, dark text keeps a contrast ratio of at least 7.5:1 against 98 % of the background under it.
What you get: a GLSL ES 3.00 fragment shader for plain WebGL2, an ES module that returns a three.js ShaderMaterial, a Shadertoy version, an offline demo page with a settings panel, a 10-second 1920 x 1080 H.264 loop that plays end to start without a seam, the same loop upright at 1080 x 1920 for vertical video, and the poster frame as a PNG (and a WebP for the web). One pass with no textures, about 0.6 ms of GPU time per 1920 x 1080 frame on a recent laptop, measured in headless Chromium. The README covers set-up, reduced motion, every uniform and performance notes.
What you download
9 files · 4.5 MB · MD, HTML, MP4, PNG, WEBP, FRAG, GLSL, JS
- README.md14 KB MD
- dither-gradient-shader-demo.html29 KB HTML
- dither-gradient-shader-loop-1080p.mp42.2 MB MP4
- dither-gradient-shader-loop-1080x1920.mp42.2 MB MP4
- dither-gradient-shader-poster.png15 KB PNG
- dither-gradient-shader-poster.webp3 KB WEBP
- dither-gradient-shader.frag10 KB FRAG
- dither-gradient-shader.shadertoy.glsl9 KB GLSL
- dither-gradient-shader.three.js11 KB JS
Details
- Shelf
- Shaders
- Type
- Single file
- Topics
- 1 bitanimated backgroundbayer dithercoded motionditherglslgradienthero sectionlo fipixel artposter framereduced motionretro computingshadershadertoythree jsvertical videovideo loopwebgl
- Licence
- Personal or commercial
What the licence allows
Personal licence
- Use it in projects for yourself, for learning, and in your portfolio.
- Change it and combine it with other work.
- Keep using it forever. The licence does not expire.
- Use it in anything that earns money, including client work and monetised video.
- Use it in a product, a game or an app that is sold or carries ads.
- Resell, redistribute or share the file.
- Put it into a dataset used to train a model.
Commercial licence
- Use it in unlimited commercial projects, including client work.
- Ship it inside products you sell: games, apps, films, print runs, print-on-demand.
- Use it in monetised and sponsored content, and in broadcast.
- Change it, and keep the result. No credit required, though it is always welcome.
- Keep using it forever. The licence does not expire.
- Resell or redistribute the asset as an asset, on its own or in a pack.
- Register it, or anything substantially it, as a logo or trademark.
- Put it into a dataset used to train a model.
Better together
Also in this pack
Shaders