Dithering · Bugs
Animated WebGL shader background in the Dithering style. Bugs variant. Generated by the 21st.dev Shader Builder. Adapted from Paper Shaders under Apache-2.0. 4-color palette (#0B0B0C, #343A40, #ADB5BD, #F8F9FA). A drop-in, zero-dependency React component for hero sections and animated gradient/noise backgrounds.
ShaderShader BackgroundWebGLDitheringPaperAnimatedBackgroundHeroHero BackgroundAnimationAnimated BackgroundNoiseTextureBugs
precision highp float;
uniform vec2 u_resolution;
uniform float u_time;
uniform vec3 u_colors[4];
vec3 shade(vec2 uv, vec2 p, float t) {
// ····· ··· ···· ·· ······· ····· ·· ·····
float v = fbm(p * ····· + t * ····);
return palette(0.5 + 0.5 * sin(v + ·····));
}