PRO

Plasma Tunnel Background

A full-bleed WebGL2 background that ports a compact GLSL raymarch into a copy-ready React component. A single oversized triangle drives ninety-nine accumulation steps through a sine-folded tunnel, with resolution, time, speed, intensity, and pixel-ratio controls exposed as uniforms. Pure WebGL2, no dependencies.

Component

BLANK signal field

A procedural tunnel for pages that need motion before the first word.

Install
npx shadcn@latest add @compronents/plasma-tunnel-background

Installs from ui.aryank.space. Needs a registry token and a one-time @compronents entry in components.json. The docs walk through both.

Files
Checking access…
API
PropTypeDefaultDescription
classNamestring"h-full w-full"Classes applied to the canvas element.
speednumber1Animation speed multiplier for the shader time uniform.
intensitynumber1Brightness multiplier for the accumulated color.
pixelRationumber1.5Upper bound for devicePixelRatio when sizing the drawing buffer.
Customize
speedslider

Multiplier applied to u_time before the tunnel scrolls forward.

intensityslider

Brightness multiplier before the final tanh compression.

pixelRatioslider

Maximum device pixel ratio used for the WebGL drawing buffer.

Dependencies
None.