Captain UI

Shader backdrop

A real photo plus one effect, in WebGL2, for backgrounds that don't look like every AI gradient.

npx shadcn@latest add https://captain-shaders.vercel.app/r/shader.json
Tranquility Base

Usage

import { Shader } from "@/components/shaders/shader"
import { photo, dither } from "@/components/shaders/effects"

<Shader base={photo} finish={dither} src="/wave.webp" className="h-[80vh]" />

Props

PropTypeDefaultWhat it does
baseEffectphotoOne of 8 bases.
finishEffectAt most one of 9 finishes.
srcstringThe photo.
seednumberRepeatable noise.

Accessibility

  • Decorative canvas, aria-hidden.
  • Pauses under prefers-reduced-motion.
  • Falls back to the plain photo without WebGL2.