Spherize
MITMap 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';23export default function Demo() {4 return (5 <ShaderSpherize6 radius={1}7 depth={1}8 lightIntensity={0.5}9 lightSoftness={0.5}10 lightColor="#ffffff"11 />12 );13}
Props
| Prop | Tipo | Por defecto | Descripción |
|---|---|---|---|
| radius | number | 1 | Radius |
| depth | number | 1 | Depth |
| lightIntensity | number | 0.5 | Light Intensity |
| lightSoftness | number | 0.5 | Light Softness |
| lightColor | string | "#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.