Interactive WebGL
GPU-accelerated procedural shader canvas with fluid ripples, ordered dither matrices, and wireframe meshes reacting to pointer velocity.
Live preview
Interact with the effect here. Drag, hover, and use its controls.
Variation Tweaking
Adjust the options and see the preview update live.
Installation
Install automatically via CLI or manually integrate dependencies and code.
Usage
Import the component and configure visual variants, sizes, and operational states.
import { InteractiveWebGL } from '@/components/interactions/interactive-webgl' <InteractiveWebGL preset="fluid" showControls/>Composition
Compose with icons, form triggers, and layout containers.
<div className="aspect-[4/3] w-full max-w-2xl overflow-hidden rounded-3xl border border-border"> <InteractiveWebGL preset="fluid" showControls /></div>API Reference
Property matrix, types, defaults, and usage descriptions.
Data Attributes
State-reflecting DOM attributes for custom selector styling.
This component does not expose custom data attributes. Standard HTML data attributes are forwarded to its interactive element.
How It Works
A WebGL fragment shader calculates real-time distance field ripples and spatial coordinate quantization on a single 2D quad, pausing GPU rendering automatically when out of viewport.
Accessibility
Focusable GPU canvas container with keyboard controls and fallback handling.
Limitations
Features
Meet the team behind the interaction
Crafted for modern web applications and AI agent workflows.
