VGPU

Air Painting

Shaders 1

About

Wipe frost from a GPU-rendered glass surface by dragging across it. A persistent compute-shader mask reveals the scene beneath without requiring camera access.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Air Painting to your project and fits it to your theme.

Code

How Air Painting is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import Component from "@/components/ui/air-painting";

const settings = {
  brushSize: 48,
};

export default function Default(props: Partial<typeof settings>) {
  const s = { ...settings, ...props };
  return (
    <div className="fixed inset-0 h-screen w-screen overflow-hidden bg-black">
      <Component brushSize={s.brushSize} />
    </div>
  );
}

More by VGPU

View all
  • Black Hole

    Black Hole

    1.4K
  • Optimized Black Hole

    Optimized Black Hole

    260
  • Earth

    Earth

    204
  • Next.js Flare

    Next.js Flare

    191
  • Particles ocean

    Particles ocean

    177
  • Triangle LED Hero

    Triangle LED Hero

    111
  • Glass Fractal

    Glass Fractal

    89
  • Interactive Fluid

    Interactive Fluid

    80

More in Shaders

View all
  • Glass Fold

    Glass Fold

    354
  • Wave

    Wave

    704
  • Phosphor 30

    Phosphor 30

    301
  • Shader Animation

    Shader Animation

    3.8K
  • Old Television Shader

    Old Television Shader

    410
  • Illos Webhook Setup

    Illos Webhook Setup

    9
  • Radial Shader

    Radial Shader

    144
  • Background Shader

    Background Shader

    316