Dhileep Kumar GM

Celestial Sphere

Heroes 276

About

"Celestial Sphere," combines several of the best ideas from the code you shared: Procedural Generation: Like the lightning and dark veil examples, it uses procedural noise to generate a unique, ever-shifting visual. Mouse Interaction: Inspired by the iridescence shader, the visual reacts to your mouse movements, creating a "warp" effect as you move the cursor. Customizable Props: The component is highly customizable, allowing you to control hue, speed, zoom, and particleSize through props. Clean React Structure: It's built as a self-contained React component using modern hooks (useRef, useEffect), making it easy to drop into any project.

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

Code

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

Usage.tsx

import { CelestialSphere } from "@/components/ui/celestial-sphere";

const settings = {
  hue: 210.0,
  speed: 0.4,
  zoom: 1.2,
  particleSize: 4.0,
};

export default function DemoOne(props: Partial<typeof settings>) {
  const s = { ...settings, ...props };
  return (
    <div className="h-screen w-screen">
      <CelestialSphere
        hue={s.hue}
        speed={s.speed}
        zoom={s.zoom}
        particleSize={s.particleSize}
        className="absolute top-0 left-0 w-full h-full"
      />
      <div className="relative z-10 text-center text-white pointer-events-none">
        <h1 className="text-6xl font-bold tracking-tighter">
          Celestial Sphere
        </h1>
        <p className="mt-4 text-lg text-gray-300">
          An interactive WebGL shader component for React.
        </p>
      </div>
    </div>
  );
}

Dependencies

More by Dhileep Kumar GM

View all
  • Aether Flow Hero

    Aether Flow Hero

    2K
  • Woven Light Hero

    Woven Light Hero

    1.6K
  • AnomalousMatterHero

    AnomalousMatterHero

    1.5K
  • PulseFit hero

    PulseFit hero

    974
  • Mountain Scene

    Mountain Scene

    879
  • HolographicCard

    HolographicCard

    835
  • 3D Animation

    3D Animation

    812
  • liquid  Shader

    liquid Shader

    573

More in Heroes

View all
  • Responsive Hero Banner

    Responsive Hero Banner

    2.2K
  • SaaS Template

    SaaS Template

    2.7K
  • Hero

    Hero

    1.3K
  • Centered Hero with Image Fan

    Centered Hero with Image Fan

    1.1K
  • Hero with group of images, text and two buttons

    Hero with group of images, text and two buttons

    440
  • Editorial Collage Hero

    Editorial Collage Hero

    501
  • Aero Hero-3

    Aero Hero-3

    614
  • Hero 03

    Hero 03

    373