Kinetic UI
Back to Introduction
Real-time & Media

Webcam Shader Portal

Real-time WebGL shader pipeline applied directly to the user's webcam feed.

Quick Actions
CLI Installation
npx kinetic-ui-cli@latest add webcam-shader-portal

The WebcamShaderPortal requests camera permissions and immediately processes the video stream through custom GLSL fragment shaders. Perfect for 'Matrix' or 'Glitch' interactive experiences.

Live Preview

Webcam Shader Portal

AWAITING CAMERA STREAM

Installation

npx kinetic-ui-cli@latest add

Usage Guide

1. Import the Component

Import the component into your React or Next.js page:

import { WebcamShaderPortal } from "@/components/creative/webcam-shader-portal";

2. Implementation Example

Render the component and customize its behavior by passing props:

import { WebcamShaderPortal } from "@/components/creative/webcam-shader-portal";

export default function Example() {
  return (
    <div className="w-full flex items-center justify-center p-8">
      <WebcamShaderPortal
        initialVariant{/* value */}
      />
    </div>
  );
}
Performance Notes
  • Uses CSS hardware acceleration via GPU transform-binds.
  • Damped interpolation minimizes paint-redraw flashes.
  • Tree-shakable import: only compiles elements requested.
Accessibility Notes
  • Full keyboard focus-ring navigation support (`Tab`/`Shift+Tab`).
  • ARIA roles mapped correctly for assistive screen readers.
  • Respects `prefers-reduced-motion` system toggles.