Docs/Fondos

Lens Flare

MIT

Realistic 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';
2
3export default function Demo() {
4 return (
5 <ShaderLensFlare
6 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

PropTipoPor defectoDescripción
intensitynumber0.5Intensity
ghostIntensitynumber0.4Ghosts
ghostSpreadnumber0.7Ghost Spread
ghostChromanumber0.3Ghost Chroma
haloIntensitynumber0.4Halo
haloRadiusnumber0.6Halo Size
haloChromanumber0.6Halo Chroma
haloSoftnessnumber0.8Halo Softness
starburstIntensitynumber0.3Starburst
starburstPointsnumber6Blades

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.