Hologram
MITVolumetric sci-fi hologram — a translucent emissive projection of the shape with fresnel-lit edges, depth scan-lines that wrap 3D forms, CRT scanlines, flicker and beam wobble
Cargando shader…
Ajústalo
1
0
2.5
0.04
0.45
1
0.5
26
0.55
Instalación
Terminal
npx shadcn@latest add https://<tu-dominio>/r/shader-hologram.json
Crea components/bastard/ShaderHologram.tsx e instala shaders. Más opciones
Uso
Demo.tsx
1import ShaderHologram from '@/components/bastard/ShaderHologram';23export default function Demo() {4 return (5 <ShaderHologram6 scale={1}7 rotation={0}8 color="#5ec8ff"9 brightness={2.5}10 edgeSoftness={0.04}11 fill={0.45}12 edgeGlow={1}13 depthLines={0.5}14 depthScale={26}15 scanlines={0.55}16 />17 );18}
Props
| Prop | Tipo | Por defecto | Descripción |
|---|---|---|---|
| scale | number | 1 | Scale |
| rotation | number | 0 | Rotation |
| color | string | "#5ec8ff" | Color |
| brightness | number | 2.5 | Brightness |
| edgeSoftness | number | 0.04 | Edge Softness |
| fill | number | 0.45 | Volume Fill |
| edgeGlow | number | 1 | Edge Glow |
| depthLines | number | 0.5 | Depth Lines |
| depthScale | number | 26 | Depth Density |
| scanlines | number | 0.55 | Scanlines |
Aquí aparecen las props ajustables. El componente acepta más: revisa el código fuente.
Créditos
Basado en Hologram · Shaders.com, adaptado para BSTRD UI.Licencia: MIT. Puedes usarlo, modificarlo y venderlo, conservando el aviso de copyright que va dentro del archivo.