Examples /

Magnetic tide

Pull a field of black-chrome spikes across a quiet circular pool.

Initializing WebGPUwgpu-kit 2.2.0

Move the magnet across the pool. Press to raise the peaks, then release to let the surface settle.

How it works

A custom elementKernel evaluates a localized magnetic envelope and a hexagonal peak pattern. PingPong relaxes the persistent height field toward that target. A native WebGPU mesh reads the height buffer directly, derives normals and reflects an authored studio environment. This is a physically inspired height-field sculpture, not a full magnetohydrodynamics solver.

Read the related guide →

Search concepts, APIs, and examples