r/webgpu • u/agubarev • 57m ago
r/webgpu • u/N7ShepardChronicles • 12h ago
Pelagos: a free open-world archipelago game on raw WebGPU, no engine
I've been working on Pelagos, a free open-world game set in an endless archipelago inspired by the Adriatic.
The entire game is built directly on WebGPU, with no game engine and no 3D library. I built it with the help of AI coding tools.
Play Pelagos: https://pelagos.wasd.fly
The video above was recorded from the in-game trailer, which also runs live in your browser:
https://pelagos.wasd.fly/?demo=short
The world is generated from a seed. Change it in the settings and you'll get a different archipelago, with its own islands, towns, roads and weather. The music is generated as you play, too, and changes with the time of day and weather.
Explore coastal towns, quiet coves, mountain roads and open water. Travel by sailboat, motor yacht, speedboat, jet ski, motorcycle or seaplane. Take on optional jobs, meet other players, or just pick a destination and see where you end up.
You can walk around the islands and explore boat interiors. The waves respond to wind and swell, storms gather in the distance, and the world shifts from day to night. The game runs in your browser, with nothing to install.
I also made WASD Launcher for Windows 10/11. It puts WebGPU and WebGL games on one start page and opens them in standalone windows, with graphics settings geared toward gaming. With the same game open it uses about a quarter less memory than Chrome. It's free, open source, under 1 MB, and doesn't need an installer:
https://github.com/alexz006/wasd-launcher/releases/latest
Under the hood: an FFT ocean, volumetric clouds, and a world that is a pure function of position. The game itself is one HTML file under 1 MB (about 370 kB over the wire), with no image, model or sound files: everything is generated in code. The ocean started from web-ocean by Noniv (https://github.com/Noniv/web-ocean), and the clouds are loosely based on cloudscape by Fishypants (https://github.com/Fishypants/cloudscape).
I've tested Pelagos on an RTX 3090 Ti, Android, and iPhone. I'd love to hear how it runs on your device - and what you'd like to see added to the game.
r/webgpu • u/Consistent_Invite_27 • 1d ago
We built a pure-JS + WGSL WebGPU engine for 3D brain MRI segmentation (0.30–3.8s across RTX/M-series, zero WASM on WebGPU, auto LowMem128 mobile staging)
We just shipped brainchop.org v5 and @brainchop/core (MIT licensed) — a pure JavaScript + WGSL WebGPU V4 engine that runs 104-region 3D human brain MRI parcellation and omnimodal skull stripping 100% client-side with zero uploads and zero WebGPU WASM binaries.
Try it live (sample MRI built in, no file needed): https://brainchop.org/?model=mindsnap
Core repo & npm (@brainchop/core): https://github.com/neuroneural/brainchop-core
How the WebGPU V4 engine works:
- Runs the full NIfTI-1 → 1 mm conform resampling → dilated 3D MeshNet (84K–190K params, 340–790 KiB weights) → connected-component cleanup → native-grid reslicing pipeline directly in JS + WGSL inside a Web Worker.
- Uses 8-bit activation staging (
LowMem128keeps the largest single storage buffer ≤ 80–120 MiB on shared-RAM laptops and mobile GPUs) plus a brief 13.5 MiB calibration probe on unrecognized adapters. - Degrades cleanly across
shader-f16 + subgroups→shader-f16→f32→ WebGL2 WASM → COOP/COEP multi-threaded pthreads WASM CPU (and explicitly rejects software rasterizers like SwiftShader/WARP).
Real-world hardware stress test: 43 folks already submitted 50+ browser runs across macOS, Windows, Linux, iOS, and Android with 0 crashes and 0 out-of-memory errors — ranging from 0.30 s GPU inference on an RTX 5070 and 0.78 s total on a Linux RTX 5080, to 1.08 s on Apple M5 Max, 3.8 s on Apple M1, 6.6 s on an iPhone, 10.4 s on Android, a 2014 GT 730, and a zero-GPU Windows PC falling back to 20-core WASM CPU.
If you try brainchop.org/?model=mindsnap, clicking Diagnostics auto-copies your GPU/timing report - feel free to paste it in our community benchmarks thread: https://github.com/neuroneural/brainchop-core/issues/3
Happy to answer questions about the WGSL 3D conv kernels, subgroup/f16 precision tiers, or handling WebGPU buffer limits across mobile/desktop browsers!
r/webgpu • u/MacXou34 • 1d ago
Voltane: an RC racing game on three.js WebGPU (TSL materials, WebGL 2 fallback), running in the browser on PC and phones
Hi r/webgpu, I'm building Voltane, a free RC car racing game that runs in the browser (PC, Android, iPhone/iPad in Safari). It's in open beta. The clip is Maplewood at late afternoon, on the Ultra profile. Some notes from the rendering side, in case they're useful:
- three.js r186 on the WebGPU renderer, with an automatic fallback to WebGL 2 when the browser has no adapter. All the custom materials are written in TSL, which compiles to WGSL or GLSL.
- A TSL pitfall that cost me a while: a node that takes screen-space derivatives (dFdx/dFdy: specular anti-aliasing, a relief frame) placed inside a select() branch produced a pipeline WebGPU refused, with no console error at all. The object just rendered black. Mixing by weight (mix(old, new, select(cond, 1, 0))) keeps the derivatives out of any branch.
- Graphics profiles (Auto, Low, Medium, High, Ultra, plus a custom one). Auto starts from an estimate (Low on touch screens, Medium without WebGPU, the GPU adapter otherwise), then calibrates once per GPU: it measures six seconds of menu after loading, goes one notch down if frames are missing while dynamic resolution is already at its floor, one notch up if the GPU stays far under its budget.
- One level at a time in memory, plus the museum menu. Loading is cut into slices so the menu freezes at most ~0.35 s during Maplewood's 2.2 s (on a simulated phone, CPU throttled x3, Low profile). On phones short on memory the menu itself is released during a race, and its compiled pipelines are kept so it comes back without recompiling.
- The same simulated phone: launch went from 20.3 s to 9.7 s, shader compilation from 13.7 s to 6.5 s.
Disclosure: the code was written with Claude Opus 5.5 (I direct, test, and say no a lot). Happy to go into any of this, and I'd love to hear how it runs on your GPU and browser: https://playvoltane.com
r/webgpu • u/Sensitive-Training22 • 1d ago
Speed Demon II: a WebGPU race round San Francisco where code speed sets each car speed
The race view of Speed Demon II, an online optimisation hackathon (29 January to 1 February 2027), runs on WebGPU through three.js, with a WebGL2 fallback. It picks one of four quality tiers by testing the GPU on the real scene.
The map covers San Francisco, the Golden Gate Bridge and Marin. Every team's car laps it for 48 hours. A team's top speed comes from its code: each push is timed on one machine against a naive reference, and the score sets the car's speed, up to 200 mph.
Finished stills from the race are on the landing page: https://speeddemon.dev/2027/
The hackathon: teams of 1 to 4, 26 interpreted languages with every JIT off, $2,000 in prizes. Register: https://speeddemon.dev/2027/register/
r/webgpu • u/DifferenceTotal8399 • 2d ago
Star Empire Simulator 1.0.0 — 10,000-star Milky Way galactic history sim built with Rust + wgpu + WebGPU compute shaders (playable in browser)
Play live in a WebGPU browser on itch.io: https://infiniteconquestdeveloper.itch.io/star-empire-simulator
I just shipped v1.0.0 of Star Empire Simulator, a 10,000-star Milky Way emergent galactic history simulator running natively on WebGPU (Rust + wgpu 29 + wasm-bindgen, sharing the exact same compute and render shaders with a native Android Vulkan build).
Architecture highlights for WebGPU folks:
- 100% GPU-authoritative simulation: all 10,000 stars, hyperlanes, empires, supply/BFS routing, diplomacy, and tens of thousands of ships simulate in WGSL compute shaders (<= 8 storage buffers per stage)
- Zero render-stage storage buffers: a presentation compute transform builds double-buffered vertex snapshots so vertex/fragment passes stay WebGPU-spec portable (including downlevel mobile Vulkan GPUs)
- Strict O(1) GPU-to-CPU readback (<= 16 KiB/tick): Vue 3 HUD subscribes only to bounded summary/chronicle readbacks with zero DOM world-space overlays
- Deterministic seeded timelines + live 2x-16x Time Bank with binary save export/import
Would love feedback on browser/adapter behavior across different GPUs and platforms!
Discord (bug reports & Android Vulkan Closed Alpha): https://discord.gg/YY83WvKT6j
AI disclosure
code: yes
graphics: yes
text: yes
sounds: yes (UI/event SFX synthesized in code; the 4 soundtrack tracks are human-composed by Scott Buckley under CC-BY 4.0)
r/webgpu • u/Fun-Community-9397 • 3d ago
Pocket Ray Tracer: a WebGPU path tracer and live Schwarzschild black hole in the browser
I built Pocket Ray Tracer, a small WebGPU app that runs entirely in the browser: https://pocketraytracer.com
It opens on a live Black Hole. Rays are marched around a Schwarzschild geometry, so the accretion disk appears both above and below the shadow, with a photon ring, Doppler beaming and a lensed starfield. Layers lets you split the view and inspect light bending, the disk on its own, the lensed stars, or the Doppler/beaming pass. You can change the mass and disk tilt, orbit and zoom, and tap the picture to trace that pixel's ray.
There's also a path-traced Studio scene: glass, chrome, gold, matte and glowing spheres on a checker floor, with a floating material palette if you tap a sphere.
The UI is Expo Exact (a contract UI, with Rust compiled to wasm). The GPU work is WGSL. The Studio path tracer is a WGSL port of the scene and materials from David Singleton's rust-raytracer (https://github.com/dps/rust-raytracer, BSD-2).
It's free to try (WebGPU: current Chrome, Edge, or Safari 26+). There's an optional Pro for A$29 if you want watermark-free exports; that's it, no subscription.
I'd love feedback, especially:
- Performance on your GPU and browser (integrated, mid-range, and mobile)
- Whether the lensing looks right to you. The Schwarzschild integration is meant to be exact, but the disk model has documented approximations, and there's no spin and no gravitational redshift yet.
r/webgpu • u/Low_Conference_3805 • 3d ago
WebGPU path tracer and OIDN denoiser shipping in an open-source browser CAD app (with a WebGL fallback, and some numbers)
ive shipped a webgpu path tracer in rodeo, an open source cad app that runs in the browser: https://rodeo.build (code: https://github.com/rodeobuild/rodeo)
its three-gpu-pathtracers webgpu build, only loaded when theres an adapter, with intels oidn doing the denoise on webgpu through oidn-webgpu. theres a webgl engine behind the same interface so every browser still gets a path tracer. it renders whatever is in the cad file you opened, revit, sketchup, rhino, ifc, vectorworks, dwg.
some numbers and traps in case they save someone time:
256 spp at 1600x1000 is about 14s on both engines on an m3 max, so webgpu didnt buy me any speed.
a bvh per mesh plus non indexed geometry made big meshes disappear until i kept the index the bvh worker made.
the kernels size their texture array at compile, so adding textures means rebuilding the scene.
ive only tested chromium on apple silicon properly. if youre on windows with nvidia or amd, or firefox or safari, id love to know what happens.
to try it open any model, press Render and pick Path Traced. the status line says which engine ran.
r/webgpu • u/UverseDev • 3d ago
A procedural environment in WebGPU: compute-built grass and indirect draws with Rust
This is Wildlands, a test scene for Uverse, the engine I'm developing. The grass, flowers, trees and stones are procedural. The volumetric clouds move and change shape too.
It uses Rust + wgpu and WGSL shaders. Grass blades are rebuilt from seeds on the GPU each frame, while a tiled sky cache spreads the cloud rendering across frames. :)
(and it runs natively as well with Windows/macOS with DirectX 12 and Metal!)
Try the WebGPU demo or natively on your computer!
Check out at Uverse + join waitlist so then you can also try Uverse out! :) -> https://uverse.dev/#waitlist
r/webgpu • u/sometime_9 • 5d ago
Built a full 3-mission WebGPU browser FPS from scratch with Gemini & Claude (zero external models/textures/audio, MIT open-source)
Cordon: an open-source browser FPS running on a from-scratch WebGPU + WGSL renderer. No game engine, no Three.js at runtime, zero external 3D models/textures/audio—everything is procedurally generated. Built entirely by AI: just a wish to Gemini + Claude + Grok.
- Play live: https://cordon.chaxus.com (latest Chrome / Edge / Safari / Firefox with WebGPU; supports KB+M, gamepad, and touch)
- Source: https://github.com/chaxus/cordon
How it was built
It's very simple. Just make a wish with Gemini + Claude + Grok .
r/webgpu • u/Away_Falcon_6731 • 9d ago
[Update] Kiln 0.6: Ray-guided streaming, time series and OME segmentations
Hi folks,
Following up on my earlier posts about Kiln (here & here). Two releases have shipped since, so here's a combined update.
Kiln is a WebGPU-native out-of-core volume renderer. It streams multi-GB OME-Zarr datasets over HTTP into a fixed-size GPU atlas and ray marches them in a compute shader. The VRAM footprint stays constant no matter how big the dataset is.
What's new in 0.6
- Ray-guided streaming. The ray marcher writes back which bricks it actually touched, and the streamer stops fetching bricks that sit behind opaque material. Converges 24–41% faster in DVR views
- Label layers. Up to eight OME-Zarr segmentations rendered over the volume, shaded in 3D and filled on slices. Labels stream as bricks like the volume itself and follow its resolution levels. Only bricks that contain a boundary take GPU memory
- Time series and channel selection. Scrub through timepoints and pick which source channels go into the render slots
- Quad view and orthographic projection. Front, side and top panes around the 3D view. The engine can now drive several views of one dataset
- Gradient shading and boundary emphasis in DVR, and auto contrast per channel
From 0.5
- Native OME-Zarr pyramids with per-axis downsampling. Anisotropic and XY-only level stacks no longer get forced into a 2:1 octree
- Progressive base-level loading, and multichannel datasets stream only the visible channels
KilnEngine: a headless engine for hosts that bring their own device, camera and frame loop.KilnVieweris built on itint16input, OMERO channel names and display windows
Demos
- Vibrio cholerae cryo-ET, quad view
- Labels on a mouse fibroblast tomogram
- Gallery: https://kilnrender.com/gallery
Links
- Site and docs: https://kilnrender.com/
- GitHub: https://github.com/kilnrender/kiln-render
- npm: https://www.npmjs.com/package/kiln-render
- Release notes: https://github.com/kilnrender/kiln-render/releases/tag/v0.6.0
Thanks for reading.
Cheers.
r/webgpu
•
u/N7ShepardChronicles
•
11d ago
Endless underwater world in raw WebGPU, playable as a crab, a shark or a whale
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 • u/UverseDev • 13d ago
Uverse Game Engine - Simulating 3D Grass
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 • u/DrummingBird1 • 14d ago
Landing on the Moon in the browser: quadtree terrain built in workers, per-pixel detail on an exact integer lattice (WebGPU, WebGL2 fallback)
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 • u/realzackontop • 15d ago
Some storm footage from an early Three.js + WebGPU build of my sailing game
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 • u/tallbutawkward • 15d ago
Made a music player with Svelte 5 + Tauri: your local library, 50k live radio stations, and a WebGPU visualizer
r/webgpu • u/Bell-River • 15d ago
A walkable Arabian desert in a single 74 KB HTML file (raw WebGPU)
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.
r/webgpu • u/acher249 • 16d ago
Codevember! Day 17 - Kelp
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 • u/Key_Calligrapher6269 • 16d ago
shallow water sim in WebGPU compute, 30 s breakdown from height field to final render
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
I open sourced my magnifying glass
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 • u/Delicious_Abies_9708 • 19d ago
vulkan-py easymode. all the boilerplate is in easy.py. vulkan-py fork https://github.com/billyblackburn/vulkan-py-easy/tree/main
reddit.comI made this after starting with wgpu-py and then found vulkan-py but preferred the wgpu-py terseness
r/webgpu • u/acher249 • 20d ago
WebGPU every day this month
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! 😄