Components
A React UI component that renders an infinite, color-shifting warp-speed tunnel using WebGL2 and GLSL shaders.

import WarpTunnel from "@/components/ui/warp-tunnel";
const settings = {
segments: 8,
speed: 1.5,
};
export default function DemoOne(props: Partial<typeof settings>) {
const s = { ...settings, ...props };
return (
<div className="h-screen w-screen">
{/* Warp Tunnel Shader */}
<WarpTunnel segments={s.segments} speed={s.speed} />
{/* Overlay content */}
<div className="absolute inset-0 z-10 flex flex-col justify-center items-center text-center pointer-events-none px-4">
<h1 className="text-6xl font-black">Warp Tunnel</h1>
<p className="mt-4 text-lg text-muted-foreground max-w-xl">
A mesmerizing, kaleidoscopic warp‐tunnel rendered in GLSL/WebGL2,
fully customizable via props and theme‐aware through CSS variables.
</p>
</div>
</div>
);
}