r/webgpu • • 20h ago Bravo

Endless underwater world in raw WebGPU, playable as a crab, a shark or a whale

58 Upvotes

A browser game where you play as a sea creature in an endless ocean. Swim in any direction and the world keeps generating: kelp forests, reefs, a deep rift, an abyssal plain with steaming chimneys.

No engine and no 3D library, just WebGPU. There are no textures or models either: the rock is sculpted in a compute shader, a worker grows the plants and fish on it, and everything is seeded by position, so a place looks the same when you come back. The whole thing is one HTML file of about 250 KB.

It's multiplayer: everyone online shares the same sea. Tested on desktop, Android and iPhone.

Play: https://abyssal-infinite.wasd.fly

Repo: https://github.com/alexz006/abyssal-infinite

It's a fork of Abyssal Garden by Noniv, built with AI coding tools like the original.


r/webgpu • • 2d ago

Uverse Game Engine - Simulating 3D Grass

63 Upvotes

Uverse, a Game Engine, is now able to simulate a real-time 3D grass! 😎 It is highly interactive with the wind simulations plus collider features is also implemented too! 🌿

It runs entirely in WebGPU / WASM, but it allows you to export into native exports too, such as DirectX 12, Vulkan, Metal :)

Check it out at https://uverse.dev - Join the waitlist, since we're about to rolling devs into private alpha access!


r/webgpu • • 3d ago

NobuRF: a browser-based FDTD antenna solver (WebGPU, runs fully client-side)

10 Upvotes

I've been building NobuRF, an FDTD solver for antenna simulation that runs entirely in the browser via WebGPU. No server does the math; it all runs on the local GPU (my GTX 1660 Ti laptop).

The first image is a 5.8 GHz patch antenna solved in 12.8 s, with the full 3D fields and radiation pattern computed in the tab. The second is a 915 MHz helix at 1.2 million cells, to show it isn't limited to flat boards (approximate dimensions on that one for now).

The third image is a sanity check: the same patch run through openEMS, an independent open-source solver, at the same resolution. Resonance comes out at 5.30 vs 5.34 GHz edge-fed and 5.47 vs 5.47 GHz inset-fed, with the inset dip depth at -21.5 vs -20.4 dB. Nothing has been built and measured on a network analyzer yet, so this is solver-to-solver agreement, not a physical validation.

This weekend the solver goes into the Cerebras x Kimi hackathon, where an AI model gets to drive it. Happy to go deeper on the WebGPU setup if anyone's interested.


r/webgpu • • 3d ago

Landing on the Moon in the browser: quadtree terrain built in workers, per-pixel detail on an exact integer lattice (WebGPU, WebGL2 fallback)

Thumbnail
rakia-sim.pages.dev
1 Upvotes

Live: https://rakia-sim.pages.dev/?ref=reddit-webgpu

The interesting part was precision: the GPU only has float32, so tiles go up as offsets from float64 centres, and the noise below a vertex is evaluated on a lattice split into an exact integer part and a small fraction. Every CPU-GPU path has a numeric cross-check against a float64 reference, not just screenshots. Happy to talk about any of it; I'd also love to hear how it runs on your GPU and browser.


r/webgpu • • 4d ago

A walkable Arabian desert in a single 74 KB HTML file (raw WebGPU)

17 Upvotes

Abyssal Garden’s single-file approach inspired me to try the same constraint with a different landscape. I used Codex to build Rub’ al Khali, a first-person desert demo where you can run over dunes, walk through a ruined caravanserai and explore a date-palm oasis.

The English version is 73,966 bytes on disk. The browser generates the terrain and geometry, renders the sand, shadows and water through WebGPU, and synthesizes wind and footsteps with Web Audio. Save the page as HTML and you can run it offline in Chrome with WebGPU. There’s no game engine and no separate asset download.

WASD + mouse to explore, Shift to run, Space to jump, and 1–3 for the three viewpoints.

Play in English · Play in Arabic


r/webgpu • • 4d ago

Some storm footage from an early Three.js + WebGPU build of my sailing game

2 Upvotes

This is from an early Three.js r186 + WebGPU/TSL build of Red Skies at Dawn, my solo sailing game. A small boat, an approaching storm, and a passage that gets a lot less peaceful.

If you're into it, wishlist Red Skies at Dawn on Steam: https://store.steampowered.com/app/5268580/


r/webgpu • • 4d ago

Made a music player with Svelte 5 + Tauri: your local library, 50k live radio stations, and a WebGPU visualizer

2 Upvotes

r/webgpu • • 6d ago

shallow water sim in WebGPU compute, 30 s breakdown from height field to final render

31 Upvotes

built this with three.js WebGPU and TSL, the stream is a shallow water grid stepped in compute every frame, the video goes through each pass, bed height, depth, velocity, advected ripples, foam, caustics, raw render, then post

runs 60 fps at 1080p on my laptop with the 512 grid

live here : https://stream.mulualem.com


r/webgpu • • 5d ago

Codevember! Day 17 - Kelp

11 Upvotes

I'm keeping the WebGPU studies coming! This one was really fun to build. Links to the open source code in the post.


r/webgpu • • 7d ago

Clouds Rendering in NervLand - Second Stage

6 Upvotes

r/webgpu • • 7d ago

60 fps on ultra low end pc inside chrome

Thumbnail reddit.com
1 Upvotes

r/webgpu • • 7d ago

I open sourced my magnifying glass

Post image
1 Upvotes

I'm building Grip, a free & open source screen recorder for Mac. I wanted a loupe to blow up one spot without zooming the whole screen, like a regular zoom does.

The first version worked but looked hmm, like a sticker? So I kept going back to Claude with whatever bugged me:
- banding over video
- a shadow way too dark
- a "frosted" rim that looked like a dirty window
- text smearing into streaks at the edge
- ...and a whole bunch of other details

Streaks were the biggest one! Real thick glass doesn't freeze the image at the edge, it curls it back so every line ends in a little "hook". As you can imagine "make it look like glass" never worked. Describing what the light actually does fixed it in one go.

It ended up as one WebGPU shader, and it's open source: https://github.com/bestboyhq/grip


r/webgpu • • 8d ago

vulkan-py easymode. all the boilerplate is in easy.py. vulkan-py fork https://github.com/billyblackburn/vulkan-py-easy/tree/main

Thumbnail reddit.com
1 Upvotes

I made this after starting with wgpu-py and then found vulkan-py but preferred the wgpu-py terseness


r/webgpu • • 9d ago

WebGPU every day this month

26 Upvotes

I've been participating in #codevember, everyday i'm building a new 3D web experience with WebGPU. I thought some folks here might find it interesting. All open sourced.

Day 9's word was "Membrane".

You can play with it here: https://adamwebsite.com/codevember/09-membrane
Find the code here: https://github.com/acher249/codevember-2026
Find all of them here: https://adamwebsite.com/codevember/

Let me know what you think! 😄


r/webgpu • • 10d ago

Bedroom GI Showcase

67 Upvotes

Hi! I wanted to share a new real-time bedroom showcase highlighting our latest global illumination technology, powered by WebGPU.

Fully dynamic lighting, realistic indirect illumination, and natural light bouncing throughout the scene, all running directly in the browser.

Recorded on a MacBook M4 at 60fps / 15ms GPU/frame.

X Post

Youtube video

Scene from Brandon Lerry ‪@brandonlerry‬


r/webgpu • • 10d ago

5,000 live DOM screens drawn with WebGPU, still clickable and typeable

21 Upvotes

How it works: Chrome 157 has an experimental API, drawElementImageToTexture, that rasterizes a real DOM element into a GPU texture. gpucanvas packs screens into a texture atlas with it and draws every visible one in a single instanced draw call. The DOM stays live, so React state, inputs and clicks still work. The browser just doesn't paint it.

The fps meter is uncapped (vsync off). In the close-up it reads in the thousands because one screen is in view. With all 5,000 in view it runs about 115 to 330.

The cursors are scripted agents, a stress test for many edits at once.

Needs Chrome 157+ with chrome://flags/#canvas-draw-element.

Code (MIT): https://github.com/berkantay/gpucanvas

Built with help from Claude Code.


r/webgpu • • 10d ago

A real-time 3D lattice Boltzmann wind tunnel on a phone, running on WebGPU inside a web view

1 Upvotes

I shipped an iOS app where the whole fluid solver runs on WebGPU. You put a car in a 3D wind tunnel, change the speed from 10 to 500 km/h, and see smoke, streamlines and surface pressure update live.

The app is a Svelte front end in a Capacitor web view. The lattice Boltzmann solver and the rendering both run on the phone's GPU through WebGPU, so there is no native compute code for the simulation.

It is a visualization for fun, not engineering CFD. The drag numbers are estimates from a simplified model.

iOS is out now; Android is still in testing. I'm happy to answer questions about running WebGPU compute in a mobile web view.

https://apps.apple.com/app/id6822034101


r/webgpu • • 11d ago

should i make a dataframe and numpy package for wgpu-py. i have it wotking on my amd gpu?

0 Upvotes
  • something like nvidia rapids? on my steamdeck btw. it even hss subgroups ..

r/webgpu • • 17d ago

PeerBrush: partial texture updates for a desktop paint canvas with Rust and wgpu

Post image
0 Upvotes

PeerBrush is a GPLv3 desktop painting app built in Rust with egui and wgpu. One detail that may be useful if you’re building an interactive raster canvas: when a brush preview returns a dirty rectangle, the UI copies just those RGBA rows into a tightly packed buffer and calls TextureHandle::set_partial at the rectangle’s origin. If the canvas size changes or there’s no usable rectangle, it falls back to a full texture update.

The upload optimization sits on the display side. The editor still keeps the current preview pixels, and it commits the brush gesture to undo history when the gesture ends. The demo shows the result in the actual editor, including the optional MCP workflow.

I’d be interested in how other wgpu editors handle this tradeoff for sparse strokes: a single dirty rectangle, a set of smaller tiles, or something else?

Source: https://github.com/Deftr0y/PeerBrush

63-second demo: https://peerbrush.com/assets/peerbrush-trailer-v2.1.mp4

Disclosure: posted on behalf of PeerBrush. The project and this write-up used AI assistance.

Workspace screenshot: https://peerbrush.com/assets/showcase/workspace-golden-hour.webp


r/webgpu • • 18d ago

UCANVAS Studio brush v0 Demo

1 Upvotes

r/webgpu • • 19d ago

Live ASCII art on WebGPU

Thumbnail
gallery
14 Upvotes

Hey folks, I ported my image-to-ASCII playground to WebGPU and it now keeps up with a webcam at 60 fps.

Quick rundown: a histogram pass for contrast, then one 64-thread workgroup per text cell. Each thread tries one character, and a reduction picks the best match. Then I read the cells back and draw them with a regular 2D canvas.

Funny gotcha: I first drew the text in a fragment shader with a glyph atlas, but it never quite matched the browser's own text rendering (light text on dark comes out a touch bolder). Reading back the cells turned out to be cheap enough, so I just went with that.

Try it with your camera here: https://adrianmato.com/blog/design/coding/turn-any-image-into-ascii-art/


r/webgpu • • 18d ago

A plasma motion camera shader in my WebGPU shader toy

Thumbnail vester.si
1 Upvotes

I like making fun shaders for realtime camera effects, and this one is my favorite one yet, it reminds me of the old Plasma Pong game, if any people of culture are here to remember it :)

Hope you enjoy. Fun to distract kids also.

Best on a large screen with a camera.


r/webgpu • • 21d ago

Qwen3.5-2B at 620 tok/s inside Chrome: model-specific WebGPU kernels, 6.6× WebLLM on the same model

5 Upvotes

I built a browser LLM engine that's specialized per model rather than generic: Rust compiled to wasm, plus hand-written WGSL kernels for Qwen3.5-2B (Gated DeltaNet + gated attention) and MiniCPM5-2B.

Same model, same chat prompts, greedy, Chrome 156:

webyIQWebLLM 0.2.87transformers.js 4.3
RTX 5080 generation620 tok/s (417 without speculation)9431
RTX 5080, ~1k-token prompt0.20 s0.81 s~129 s
AMD 2-CU iGPU generation37 tok/s4.7crashed

What's in it:

  • fused int4 (GPTQ, group 32) × int8 GEMV/GEMM, with dot4I8Packed and subgroups;
  • a decode loop that stays on the GPU (argmax on GPU, pipelined readback);
  • speculative decoding with Qwen3.5's built-in MTP head. Drafts are verified on the GPU, so the output is identical to greedy. It turns itself off where it doesn't pay, e.g. on the iGPU;
  • weights at +2.4% WikiText perplexity vs bf16, 1.1 GB.

Fun side effect: at this speed a 2B model can drive web pages through the DOM at 0.2–0.4 s per step. There's a browser-agent demo and a side-panel extension for Chrome/Edge.

Caveats: it's a prototype, tested on Windows, and Safari/mobile are untested.

Demo: https://rtx527896828.github.io/webyIQ/ · Code (Apache-2.0): https://github.com/rtx527896828/webyIQ · Weights: https://huggingface.co/tixiren/Qwen3.5-2B-webyIQ


r/webgpu • • 21d ago

Qwen3.5-2B at 620 tok/s inside Chrome: model-specific WebGPU kernels, 6.6× WebLLM on the same model

2 Upvotes

I built a browser LLM engine that's specialized per model rather than generic: Rust compiled to wasm, plus hand-written WGSL kernels for Qwen3.5-2B (Gated DeltaNet + gated attention) and MiniCPM5-2B.

Same model, same chat prompts, greedy, Chrome 156:

webyIQWebLLM 0.2.87transformers.js 4.3
RTX 5080 generation620 tok/s (417 without speculation)9431
RTX 5080, ~1k-token prompt0.20 s0.81 s~129 s
AMD 2-CU iGPU generation37 tok/s4.7crashed

What's in it:

  • fused int4 (GPTQ, group 32) × int8 GEMV/GEMM, with dot4I8Packed and subgroups;
  • a decode loop that stays on the GPU (argmax on GPU, pipelined readback);
  • speculative decoding with Qwen3.5's built-in MTP head. Drafts are verified on the GPU, so the output is identical to greedy. It turns itself off where it doesn't pay, e.g. on the iGPU;
  • weights at +2.4% WikiText perplexity vs bf16, 1.1 GB.

Fun side effect: at this speed a 2B model can drive web pages through the DOM at 0.2–0.4 s per step. There's a browser-agent demo and a side-panel extension for Chrome/Edge.

Caveats: it's a prototype, tested on Windows, and Safari/mobile are untested.

Demo: https://rtx527896828.github.io/webyIQ/ · Code (Apache-2.0): https://github.com/rtx527896828/webyIQ · Weights: https://huggingface.co/tixiren/Qwen3.5-2B-webyIQ

In depth: https://medium.com/@tixiren/running-a-2b-llm-at-600-tokens-s-in-the-browser-e5237f99c8ff