Reflective Plane
MITReflective floor that mirrors the content above it
Cargando shader…
Ajústalo
0.7
0.5
0.5
3
0.3
Instalación
Terminal
npx shadcn@latest add https://<tu-dominio>/r/shader-reflective-plane.json
Crea components/bastard/ShaderReflectivePlane.tsx e instala shaders. Más opciones
Uso
Demo.tsx
1import ShaderReflectivePlane from '@/components/bastard/ShaderReflectivePlane';23export default function Demo() {4 return (5 <ShaderReflectivePlane6 height={0.7}7 distance={0.5}8 falloff={0.5}9 blur={3}10 blurDistance={0.3}11 edges="stretch"12 />13 );14}
Props
| Prop | Tipo | Por defecto | Descripción |
|---|---|---|---|
| height | number | 0.7 | Floor Height |
| distance | number | 0.5 | Reflection Distance |
| falloff | number | 0.5 | Reflection Falloff |
| blur | number | 3 | Blur |
| blurDistance | number | 0.3 | Blur Distance |
| edges | 'stretch' | 'transparent' | 'mirror' | 'wrap' | "stretch" | Edges |
Aquí aparecen las props ajustables. El componente acepta más: revisa el código fuente.
Créditos
Basado en Reflective Plane · Shaders.com, adaptado para BSTRD UI.Licencia: MIT. Puedes usarlo, modificarlo y venderlo, conservando el aviso de copyright que va dentro del archivo.