Dhileep Kumar GM

Infinite Plane

Component 67

About

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

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Infinite Plane to your project and fits it to your theme.

Code

How Infinite Plane is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

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>
  );
}

More by Dhileep Kumar GM

View all
  • Aether Flow Hero

    Aether Flow Hero

    1.9K
  • Woven Light Hero

    Woven Light Hero

    1.5K
  • AnomalousMatterHero

    AnomalousMatterHero

    1.5K
  • PulseFit hero

    PulseFit hero

    919
  • Mountain Scene

    Mountain Scene

    858
  • HolographicCard

    HolographicCard

    818
  • 3D Animation

    3D Animation

    758
  • Cybernetic Bento Grid

    Cybernetic Bento Grid

    556