Light Leak
MITPhotorealistic film light leak — warm overexposed light bleeding in from a draggable anchor point, with streak bands, chromatic fringing, and slow breathing that evolves over time
Cargando shader…
Ajústalo
0.55
0.15
0.6
0.35
1
0
Instalación
Terminal
npx shadcn@latest add https://<tu-dominio>/r/shader-light-leak.json
Crea components/bastard/ShaderLightLeak.tsx e instala shaders. Más opciones
Uso
Demo.tsx
1import ShaderLightLeak from '@/components/bastard/ShaderLightLeak';23export default function Demo() {4 return (5 <ShaderLightLeak6 spread={0.55}7 intensity={0.15}8 streaks={0.6}9 colorHot="#fff3c4"10 colorMid="#ff7a2f"11 colorFringe="#a63d8f"12 flicker={0.35}13 speed={1}14 seed={0}15 />16 );17}
Props
| Prop | Tipo | Por defecto | Descripción |
|---|---|---|---|
| spread | number | 0.55 | Spread |
| intensity | number | 0.15 | Intensity |
| streaks | number | 0.6 | Streaks |
| colorHot | string | "#fff3c4" | Hot Core |
| colorMid | string | "#ff7a2f" | Midtone |
| colorFringe | string | "#a63d8f" | Fringe |
| flicker | number | 0.35 | Flicker |
| speed | number | 1 | Speed |
| seed | number | 0 | Seed |
Aquí aparecen las props ajustables. El componente acepta más: revisa el código fuente.
Créditos
Basado en Light Leak · Shaders.com, adaptado para BSTRD UI.Licencia: MIT. Puedes usarlo, modificarlo y venderlo, conservando el aviso de copyright que va dentro del archivo.