Nodes: Liquid cells
glint · Examples · Tutorials · Gallery
Visual node mode: warped Voronoi cells with glowing edges.

An example in glint, a free live shader editor in the browser: the GLSL code floats over the running picture and recompiles as you type.
The code
One pass, in GLSL.
fragment shader (generated from a node graph)
#version 300 es
precision highp float;
// Generated from nodes: edit the graph, or use "Convert to code" to take it from here by hand.
uniform vec2 resolution;
uniform float time;
in vec2 v_texcoord;
out vec4 fragColor;
float n_hash(vec2 p) { p = fract(p * vec2(123.34, 456.21)); p += dot(p, p + 45.32); return fract(p.x * p.y); }
vec2 n_hash2(vec2 p) { return fract(sin(vec2(dot(p, vec2(127.1, 311.7)), dot(p, vec2(269.5, 183.3)))) * 43758.5453); }
float n_noise(vec2 p) {
vec2 i = floor(p), f = fract(p), u = f * f * (3.0 - 2.0 * f);
return mix(mix(n_hash(i), n_hash(i + vec2(1, 0)), u.x), mix(n_hash(i + vec2(0, 1)), n_hash(i + vec2(1, 1)), u.x), u.y);
}
float n_voronoi(vec2 p, float t) {
vec2 i = floor(p), f = fract(p); float d = 8.0;
for (int y = -1; y <= 1; y++) for (int x = -1; x <= 1; x++) {
vec2 g = vec2(x, y), o = n_hash2(i + g); o = 0.5 + 0.5 * sin(t + 6.2831 * o);
d = min(d, length(g + o - f));
}
return d;
}
void main() {
// UV
vec2 nn5dn973chc_uv = (v_texcoord * 2.0 - 1.0) * vec2(resolution.x / resolution.y, 1.0);
vec2 nn5dn973chc_st = v_texcoord;
// Time
float nn5dn974e82_t = time * 0.6;
// Warp
vec2 nn5dn9755cx_uv = nn5dn973chc_uv + 0.35 * (vec2(n_noise(nn5dn973chc_uv * 1.5 + nn5dn974e82_t), n_noise(nn5dn973chc_uv * 1.5 + vec2(5.2, 1.3) - nn5dn974e82_t)) - 0.5) * 2.0;
// Cells (Voronoi)
float nn5dn976mnf_out = n_voronoi(nn5dn9755cx_uv * 4.0, nn5dn974e82_t);
// Smoothstep
float nn5dn977gf4_out = smoothstep(0.05, 0.45, nn5dn976mnf_out);
// Gradient
vec3 nn5dn978xio_rgb = mix(vec3(0.02, 0.05, 0.15), vec3(0.2, 0.9, 0.8), clamp(nn5dn977gf4_out, 0.0, 1.0));
// Glow
float nn5dn979l44_out = (0.015 / max(abs(nn5dn976mnf_out), 0.0005));
// Tint
vec3 nn5dn97azky_rgb = vec3(nn5dn979l44_out) * vec3(1.0, 0.5, 0.9);
// Add
vec3 nn5dn97b0rd_out = (nn5dn978xio_rgb + nn5dn97azky_rgb);
fragColor = vec4(nn5dn97b0rd_out, 1.0);
}More Nodes & glitch examples
Nodes: Neon rings · Nodes: Kaleidoscope · Nodes: Paint trails · Nodes: Beat tiles · Nodes: Twirl · Nodes: Polar rings