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.jsonShader backdrop is a Captain family piece with its own repo: github.com/jawadjalal/shaders. Install it with the command above.
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
| Prop | Type | Default | What it does |
|---|---|---|---|
| base | Effect | photo | One of 8 bases. |
| finish | Effect | At most one of 9 finishes. | |
| src | string | The photo. | |
| seed | number | Repeatable noise. |
Accessibility
- Decorative canvas, aria-hidden.
- Pauses under prefers-reduced-motion.
- Falls back to the plain photo without WebGL2.