# Celestial Sphere

> "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.

- Author: [Dhileep Kumar GM](https://21st.dev/@dhileepkumargm)
- License: no-license
- Tags: Mouse, Noise, WebGL, Hero Background, Shader Background
- npm dependencies: three
- Live preview: https://21st.dev/@dhileepkumargm/components/celestial-sphere

## Install

```bash
npx shadcn@latest add "https://21st.dev/r/dhileepkumargm/celestial-sphere?api_key=$API_KEY_21ST"
```

Requires a 21st API key (generate one at https://21st.dev/mcp) passed as `API_KEY_21ST`. Free accounts get a limited number of installs per day; unlimited on a paid plan — see https://21st.dev/pricing.

Full component directory: https://21st.dev/llms.txt · More like this: https://21st.dev/community/components/s/mouse.md
