BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/componentry/dither-prism-hero

Dither Prism Hero

componentry/dither-prism-hero
FreeComponent

A stunning WebGL hero background featuring advanced dithering patterns, prismatic color refraction, holographic iridescence, and center-focused ripple energy.

Live preview

live · rendered by the registry
Rendered by componentry on their own page — this is the component running, not a screenshot of it.

Install it

npx shadcn@latest add https://componentry.dev/r/dither-prism-hero.json

Source

components/ui/dither-prism-hero.tsxcomponentry.dev/r/dither-prism-hero.json · first 6 KB
1"use client";
2
3/* eslint-disable react/no-unknown-property */
4import { useRef, useMemo, useEffect, useState } from "react";
5import { Canvas, useFrame, ThreeElements, useThree } from "@react-three/fiber";
6import * as THREE from "three";
7import { motion } from "framer-motion";
8
9import { cn } from "@/lib/utils";
10import { WebGLErrorBoundary, WebGLFallback } from "./webgl-error-boundary";
11
12// Type augmentation for R3F
13declare global {
14 // eslint-disable-next-line @typescript-eslint/no-namespace
15 namespace JSX {
16 type IntrinsicElements = ThreeElements;
17 }
18}
19
20// ═══════════════════════════════════════════════════════════════════════════════
21// VERTEX SHADER
22// ═══════════════════════════════════════════════════════════════════════════════
23const vertexShader = `
24varying vec2 vUv;
25varying vec3 vPosition;
26
27void main() {
28 vUv = uv;
29 vPosition = position;
30 gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0);
31}
32`;
33
34// ═══════════════════════════════════════════════════════════════════════════════
35// FRAGMENT SHADER - The magic happens here!
36// ═══════════════════════════════════════════════════════════════════════════════
37const fragmentShader = `
38uniform float uTime;
39uniform vec2 uResolution;
40uniform vec2 uMouse;
41uniform float uMouseIntensity;
42uniform vec3 uColor1;
43uniform vec3 uColor2;
44uniform vec3 uColor3;
45uniform float uDitherIntensity;
46uniform float uPrismIntensity;
47varying vec2 vUv;
48varying vec3 vPosition;
49
50// ─────────────────────────────────────────────────────────────────────────────
51// Hash functions for procedural noise
52// … truncated

Facts

Registry
componentry
Type
registry:ui
Access
Free
Files written
0
Licence
MIT
First indexed
2026-08-02
Last confirmed
today

Go to the source

Docs on componentry componentry.dev harshjdhv/componentry on GitHub Raw registry item This item as JSON

More from componentry

All 59 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Animated Gradientanimated-gradientcomponentryComponentsFreeno deps
ASCII Effectascii-effectcomponentryComponentsFreeno deps
Aurora Flowaurora-flowcomponentryComponentsFreeno deps
auth-modalauth-modalcomponentryComponentsFreeno deps
border-beamborder-beamcomponentryComponentsFreeno deps
circuit-boardcircuit-boardcomponentryComponentsFreeno deps
closing-plasmaclosing-plasmacomponentryComponentsFreeno deps
collection-surfercollection-surfercomponentryComponentsFreeno deps
BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex