Docs/Formas

Thin Film

MIT

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

PropTipoPor defectoDescripción
scalenumber1Scale
rotationnumber0Rotation
intensitynumber1Intensity
rimWidthnumber1Rim Width
edgeSoftnessnumber0.3Edge Softness
thicknessnumber0.5Thickness
dispersionnumber0.5Dispersion
saturationnumber1Saturation
hueShiftnumber0Hue Shift
lightAnglenumber300Light 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.