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>
);
}








