VGPU

FFT ocean surface

Component 50

About

A displaced ocean surface driven by a real inverse FFT. A Phillips spectrum evolves in frequency space, two compute passes run a shared-memory radix-2 IFFT into a displacement field, and a procedural grid rides it with per-pixel normals, foam and a Fresnel sky reflection under a tunable sunset. Orbit with the mouse; tweak the sea from the panel.

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

Code

How FFT ocean surface is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import Component from "@/components/ui/fft-ocean-surface";

export default function Default() {
  return (
    <div className="fixed inset-0 h-screen w-screen overflow-hidden bg-black">
      <Component />
    </div>
  );
}

More by VGPU

View all
  • Black Hole

    Black Hole

    1.4K
  • Optimized Black Hole

    Optimized Black Hole

    233
  • Earth

    Earth

    195
  • Next.js Flare

    Next.js Flare

    183
  • Particles ocean

    Particles ocean

    160
  • Triangle LED Hero

    Triangle LED Hero

    107
  • Interactive Fluid

    Interactive Fluid

    77
  • Glass Fractal

    Glass Fractal

    74

Explore more