Docs/Efectos

Spherize

MIT

Map content onto a 3D sphere surface with depth distortion

Cargando shader…

Ajústalo

1
1
0.5
0.5

Instalación

Terminal
npx shadcn@latest add https://<tu-dominio>/r/shader-spherize.json

Crea components/bastard/ShaderSpherize.tsx e instala shaders. Más opciones

Uso

Demo.tsx
1import ShaderSpherize from '@/components/bastard/ShaderSpherize';
2
3export default function Demo() {
4 return (
5 <ShaderSpherize
6 radius={1}
7 depth={1}
8 lightIntensity={0.5}
9 lightSoftness={0.5}
10 lightColor="#ffffff"
11 />
12 );
13}

Props

PropTipoPor defectoDescripción
radiusnumber1Radius
depthnumber1Depth
lightIntensitynumber0.5Light Intensity
lightSoftnessnumber0.5Light Softness
lightColorstring"#ffffff"Light Color

Aquí aparecen las props ajustables. El componente acepta más: revisa el código fuente.

Créditos

Basado en Spherize · Shaders.com, adaptado para BSTRD UI.Licencia: MIT. Puedes usarlo, modificarlo y venderlo, conservando el aviso de copyright que va dentro del archivo.