Bokeh Blur
MITPhotographic lens blur where bright highlights bloom into aperture-shaped discs
Cargando shader…
Ajústalo
50
4
0.6
6
0
0.2
0
Instalación
Terminal
npx shadcn@latest add https://<tu-dominio>/r/shader-bokeh-blur.json
Crea components/bastard/ShaderBokehBlur.tsx e instala shaders. Más opciones
Uso
Demo.tsx
1import ShaderBokehBlur from '@/components/bastard/ShaderBokehBlur';23export default function Demo() {4 return (5 <ShaderBokehBlur6 radius={50}7 highlightGain={4}8 highlightThreshold={0.6}9 bladeShape="blades"10 bladeCount={6}11 bladeRotation={0}12 chromaticFringe={0.2}13 catEye={0}14 />15 );16}
Props
| Prop | Tipo | Por defecto | Descripción |
|---|---|---|---|
| radius | number | 50 | Radius |
| highlightGain | number | 4 | Highlight Bloom |
| highlightThreshold | number | 0.6 | Highlight Threshold |
| bladeShape | 'blades' | 'circle' | 'star' | 'heart' | 'flower' | 'cross' | 'ring' | "blades" | Blade Shape |
| bladeCount | number | 6 | Aperture Blades |
| bladeRotation | number | 0 | Blade Rotation |
| chromaticFringe | number | 0.2 | Chromatic Fringe |
| catEye | number | 0 | Cat Eye |
Aquí aparecen las props ajustables. El componente acepta más: revisa el código fuente.
Créditos
Basado en Bokeh Blur · Shaders.com, adaptado para BSTRD UI.Licencia: MIT. Puedes usarlo, modificarlo y venderlo, conservando el aviso de copyright que va dentro del archivo.