Goo
MITPhotoreal wet liquid — animated 3D metaball blobs that merge and bulge to loosely form the shape, with sliding wet highlights, a clearcoat rim and a translucent body
Cargando shader…
Ajústalo
1
0
0.6
2
0.9
0.06
0.3
1
0.6
Instalación
Terminal
npx shadcn@latest add https://<tu-dominio>/r/shader-goo.json
Crea components/bastard/ShaderGoo.tsx e instala shaders. Más opciones
Uso
Demo.tsx
1import ShaderGoo from '@/components/bastard/ShaderGoo';23export default function Demo() {4 return (5 <ShaderGoo6 scale={1}7 rotation={0}8 gooColor="#37c95a"9 translucency={0.6}10 absorb={2}11 containment={0.9}12 edgeSoftness={0.06}13 blobScale={0.3}14 spread={1}15 merge={0.6}16 />17 );18}
Props
| Prop | Tipo | Por defecto | Descripción |
|---|---|---|---|
| scale | number | 1 | Scale |
| rotation | number | 0 | Rotation |
| gooColor | string | "#37c95a" | Goo Color |
| translucency | number | 0.6 | Translucency |
| absorb | number | 2 | Absorption |
| containment | number | 0.9 | Containment |
| edgeSoftness | number | 0.06 | Edge Softness |
| blobScale | number | 0.3 | Blob Size |
| spread | number | 1 | Spread |
| merge | number | 0.6 | Merge |
Aquí aparecen las props ajustables. El componente acepta más: revisa el código fuente.
Créditos
Basado en Goo · Shaders.com, adaptado para BSTRD UI.Licencia: MIT. Puedes usarlo, modificarlo y venderlo, conservando el aviso de copyright que va dentro del archivo.