Docs/Formas

Hologram

MIT

Volumetric 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';
2
3export default function Demo() {
4 return (
5 <ShaderHologram
6 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

PropTipoPor defectoDescripción
scalenumber1Scale
rotationnumber0Rotation
colorstring"#5ec8ff"Color
brightnessnumber2.5Brightness
edgeSoftnessnumber0.04Edge Softness
fillnumber0.45Volume Fill
edgeGlownumber1Edge Glow
depthLinesnumber0.5Depth Lines
depthScalenumber26Depth Density
scanlinesnumber0.55Scanlines

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.