Components
A React UI component that ray-marches an infinite, animated checkered plane using WebGL2 and GLSL.

import InfinitePlaneBg from "@/components/ui/infinite-plane";
const settings = {
planeHeight: 0,
speed: 1,
};
export default function DemoOne(props: Partial<typeof settings>) {
const s = { ...settings, ...props };
return (
<div className="h-screen w-screen">
{/* Infinite plane background with moving checkered floor */}
<InfinitePlaneBg planeHeight={s.planeHeight} 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">Infinite Plane</h1>
<p className="mt-4 text-lg text-muted-foreground max-w-xl">
A ray-marched infinite plane with dynamic checkered pattern and
diffuse lighting.
</p>
</div>
</div>
);
}