r/webgpu • • 1h ago

A procedural environment in WebGPU: compute-built grass and indirect draws with Rust

11 Upvotes

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 • • 2d ago

Built a full 3-mission WebGPU browser FPS from scratch with Gemini & Claude (zero external models/textures/audio, MIT open-source)

Post image
0 Upvotes

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.

How it was built

It's very simple. Just make a wish with Gemini + Claude + Grok .


r/webgpu • • 5d ago

[Update] Kiln 0.6: Ray-guided streaming, time series and OME segmentations

9 Upvotes

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. KilnViewer is built on it
  • int16 input, OMERO channel names and display windows

Demos

Links

Thanks for reading.

Cheers.


r/webgpu • • 8d ago Popcorn Bravo

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

128 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 • • 10d ago

Uverse Game Engine - Simulating 3D Grass

96 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 • • 11d 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 • • 11d ago

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

18 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 • • 11d ago

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

3 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 • • 11d ago

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

2 Upvotes

r/webgpu • • 13d ago

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

35 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 • • 13d ago

Codevember! Day 17 - Kelp

13 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 • • 14d ago

Clouds Rendering in NervLand - Second Stage

6 Upvotes

r/webgpu • • 15d ago

60 fps on ultra low end pc inside chrome

Thumbnail reddit.com
1 Upvotes

r/webgpu • • 15d 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 • • 15d 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 • • 16d 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 • • 18d 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 • • 18d 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 • • 17d ago

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

2 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 • • 18d 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 • • 24d 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 • • 25d ago

UCANVAS Studio brush v0 Demo

1 Upvotes

r/webgpu • • 26d 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 • • 25d 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.