DocsJavaScriptMotion reference

vgpu

Animate vgpu uniforms, shader bindings, scene nodes, cameras, lights and materials with Motion.

Alpha

vgpu is a small agent-first WebGPU library from Vercel.

Motion can animate vgpu:

  • Shared uniforms
  • Bindings for effects, draws and compute shaders
  • Cameras
  • Lights
  • Materials
  • Orbit controls

All updates are batched in Motion's frameloop alongside other DOM writes.

Live exampleOpen

The same animate() call can drive shader bindings. Here, particles from a photograph swirl into a globe, then reconstruct the image at rest.

Live exampleOpen