Lens Flare
MITRealistic camera lens flare with artifacts.
Cargando shader…
Ajústalo
0.5
0.4
0.7
0.3
0.4
0.6
0.6
0.8
0.3
6
Instalación
Terminal
npx shadcn@latest add https://<tu-dominio>/r/shader-lens-flare.json
Crea components/bastard/ShaderLensFlare.tsx e instala shaders. Más opciones
Uso
Demo.tsx
1import ShaderLensFlare from '@/components/bastard/ShaderLensFlare';23export default function Demo() {4 return (5 <ShaderLensFlare6 intensity={0.5}7 ghostIntensity={0.4}8 ghostSpread={0.7}9 ghostChroma={0.3}10 haloIntensity={0.4}11 haloRadius={0.6}12 haloChroma={0.6}13 haloSoftness={0.8}14 starburstIntensity={0.3}15 starburstPoints={6}16 />17 );18}
Props
| Prop | Tipo | Por defecto | Descripción |
|---|---|---|---|
| intensity | number | 0.5 | Intensity |
| ghostIntensity | number | 0.4 | Ghosts |
| ghostSpread | number | 0.7 | Ghost Spread |
| ghostChroma | number | 0.3 | Ghost Chroma |
| haloIntensity | number | 0.4 | Halo |
| haloRadius | number | 0.6 | Halo Size |
| haloChroma | number | 0.6 | Halo Chroma |
| haloSoftness | number | 0.8 | Halo Softness |
| starburstIntensity | number | 0.3 | Starburst |
| starburstPoints | number | 6 | Blades |
Aquí aparecen las props ajustables. El componente acepta más: revisa el código fuente.
Créditos
Basado en Lens Flare · Shaders.com, adaptado para BSTRD UI.Licencia: MIT. Puedes usarlo, modificarlo y venderlo, conservando el aviso de copyright que va dentro del archivo.