Thin Film
MITIridescent thin-film edge
Cargando shader…
Ajústalo
1
0
1
1
0.3
0.5
0.5
1
0
300
Instalación
Terminal
npx shadcn@latest add https://<tu-dominio>/r/shader-thin-film.json
Crea components/bastard/ShaderThinFilm.tsx e instala shaders. Más opciones
Uso
Demo.tsx
1import ShaderThinFilm from '@/components/bastard/ShaderThinFilm';23export default function Demo() {4 return (5 <ShaderThinFilm6 scale={1}7 rotation={0}8 intensity={1}9 rimWidth={1}10 edgeSoftness={0.3}11 thickness={0.5}12 dispersion={0.5}13 saturation={1}14 hueShift={0}15 lightAngle={300}16 />17 );18}
Props
| Prop | Tipo | Por defecto | Descripción |
|---|---|---|---|
| scale | number | 1 | Scale |
| rotation | number | 0 | Rotation |
| intensity | number | 1 | Intensity |
| rimWidth | number | 1 | Rim Width |
| edgeSoftness | number | 0.3 | Edge Softness |
| thickness | number | 0.5 | Thickness |
| dispersion | number | 0.5 | Dispersion |
| saturation | number | 1 | Saturation |
| hueShift | number | 0 | Hue Shift |
| lightAngle | number | 300 | Light Angle |
Aquí aparecen las props ajustables. El componente acepta más: revisa el código fuente.
Créditos
Basado en Thin Film · Shaders.com, adaptado para BSTRD UI.Licencia: MIT. Puedes usarlo, modificarlo y venderlo, conservando el aviso de copyright que va dentro del archivo.