Neon
MITPhotorealistic neon tube / 3D pipe effect driven by a custom shape
Cargando shader…
Ajústalo
1
0
0.5
0.2
1.5
0.6
0.6
Instalación
Terminal
npx shadcn@latest add https://<tu-dominio>/r/shader-neon.json
Crea components/bastard/ShaderNeon.tsx e instala shaders. Más opciones
Uso
Demo.tsx
1import ShaderNeon from '@/components/bastard/ShaderNeon';23export default function Demo() {4 return (5 <ShaderNeon6 scale={1}7 rotation={0}8 color="#00ddff"9 secondaryColor="#ff00aa"10 secondaryBlend={0.5}11 glowColor="#00ddff"12 tubeThickness={0.2}13 intensity={1.5}14 hotCoreIntensity={0.6}15 glowIntensity={0.6}16 />17 );18}
Props
| Prop | Tipo | Por defecto | Descripción |
|---|---|---|---|
| scale | number | 1 | Scale |
| rotation | number | 0 | Rotation |
| color | string | "#00ddff" | Tube Color |
| secondaryColor | string | "#ff00aa" | Secondary Color |
| secondaryBlend | number | 0.5 | Blend |
| glowColor | string | "#00ddff" | Glow Color |
| tubeThickness | number | 0.2 | Tube Thickness |
| intensity | number | 1.5 | Intensity |
| hotCoreIntensity | number | 0.6 | Hot Core |
| glowIntensity | number | 0.6 | Glow Intensity |
Aquí aparecen las props ajustables. El componente acepta más: revisa el código fuente.
Créditos
Basado en Neon · Shaders.com, adaptado para BSTRD UI.Licencia: MIT. Puedes usarlo, modificarlo y venderlo, conservando el aviso de copyright que va dentro del archivo.