Glitch
MITDigital glitch that melts pixels and distorts colors
Cargando shader…
Ajústalo
0.5
1
5
10
0.2
0.3
0.2
Instalación
Terminal
npx shadcn@latest add https://<tu-dominio>/r/shader-glitch.json
Crea components/bastard/ShaderGlitch.tsx e instala shaders. Más opciones
Uso
Demo.tsx
1import ShaderGlitch from '@/components/bastard/ShaderGlitch';23export default function Demo() {4 return (5 <ShaderGlitch6 intensity={0.5}7 speed={1}8 rgbShift={5}9 blockDensity={10}10 colorBarIntensity={0.2}11 mirrorAmount={0.3}12 scanlineIntensity={0.2}13 />14 );15}
Props
| Prop | Tipo | Por defecto | Descripción |
|---|---|---|---|
| intensity | number | 0.5 | Intensity |
| speed | number | 1 | Speed |
| rgbShift | number | 5 | RGB Shift |
| blockDensity | number | 10 | Block Density |
| colorBarIntensity | number | 0.2 | Color Bars |
| mirrorAmount | number | 0.3 | Mirror |
| scanlineIntensity | number | 0.2 | Scanlines |
Aquí aparecen las props ajustables. El componente acepta más: revisa el código fuente.
Créditos
Basado en Glitch · Shaders.com, adaptado para BSTRD UI.Licencia: MIT. Puedes usarlo, modificarlo y venderlo, conservando el aviso de copyright que va dentro del archivo.