effect 001 · mesh-gradient.wgsl
Mesh gradient
Two SDF blobs under a smooth union, domain-warped by simplex noise, blended through OKLab so the gradient stays vivid instead of graying out in the middle. The backdrop of this page is this exact effect, running live.
import { sdCircle } from "@vshaders/sdf/2d";
import { opSmoothUnion } from "@vshaders/sdf/ops";
import { mixOklab } from "@vshaders/color/oklab";
import { cosinePalette } from "@vshaders/color/palette";
import { simplex2d } from "@vgpu/wgsl-std/noise/simplex";
import { linearToSrgb3 } from "@vgpu/wgsl-std/color";