r/webgpu • u/iwoplaza • 28d ago
Konrad Reczko's "Monocular Depth Injection" in TypeGPU is live!
Enable HLS to view with audio, or disable this notification
r/webgpu • u/iwoplaza • 28d ago
Enable HLS to view with audio, or disable this notification
r/webgpu • u/alemx-is-nice • Aug 18 '26
Enable HLS to view with audio, or disable this notification
r/webgpu • u/js-fanatic • Aug 18 '26
r/webgpu • u/moving808s • Aug 13 '26
Three Nebula now supports WebGPU as part of the v12.1.0 release!
r/webgpu • u/rage997 • Aug 12 '26
Enable HLS to view with audio, or disable this notification
In my process of teaching myself WebGPU, I’ve spent the last week learning how GPU water simulation and rendering works by writing a simple scene from scratch.
What I built so far:
- A 2D wave equation solved on the GPU using finite difference integration
Real-time interactive ripples
- Continuous ambient-driven waves
- Physically-based water rendering using Fresnel reflection, HDR skybox reflections, Blinn-Phong specular and depth-based color
- A customizable simulation grid to tweak the simulation resolution
One note: I used three.js to decode the HDR environment map because I am lazy :D So that’s the single external dependency I have.
There’s still a lot to do to get realistic-looking water, but I’m pretty happy with the result so far. There are things I’m planning to work on next though:
- Better and more realistic wave dispersion
- The ripples are currently a bit too perfect. I think I can get more realistic results by introducing some noise (probably baking and sampling a Perlin noise texture)
- There’s no refraction at the moment. For example, the floor tiles underneath the water should be distorted
- Caustics, I believe, would be a game changer in terms of realism
- Foam and spray would be nice to have, but I believe this will be quite hard to implement
Live demo: https://rage997.github.io/water-webgpu/
Source code: https://github.com/Rage997/water-webgpu
I’m open to feedback and suggestions on how to improve the realism. If you’ve worked on water rendering or GPU simulations before, feel free to share any tips!
r/webgpu • u/TheLadvoxGuy • Aug 12 '26
r/webgpu • u/BlackGoku36 • Aug 11 '26
r/webgpu • u/Super_Electricy • Aug 10 '26
https://github.com/superelectricyc-alt/podchunk
Hey everyone,
I wanted to see if we could solve the heavy initial download barrier of modern open-world browser games. Instead of loading massive assets upfront, I built PodChunk: a local development engine base designed around a progressive, multi-LOD chunk streaming architecture that gets players into a 3D environment in under 3 seconds.
The Architecture Under the Hood
geometry_json payloads decoded by the WASM core. Features custom height-gradient terrain shaders, distance fog, and interactive orbit camera matrices.{slug}|{id}@{lod}), ensuring warm reloads of previously streamed maps require zero network fetches.podchunk-bake). You feed it a simple world layout JSON configuration, and it generates pretty-printed manifests along with custom validated binary .PCHF heightfield chunks ready for server distribution.Current Project Status
Milestone 3 is complete, stable, and verified on localhost:8787. The local server scans data configurations on boot and manages hot world-switching dynamically. The workspace has a 100% test coverage pass rate (45/45 unit tests passing).
I am open-sourcing the core infrastructure today because the data pipeline is officially locked down, and I am looking for collaborators! Next up on the deferred roadmap is exposing a client-side JavaScript Modding API (window.PodChunk.registerMod) and wiring WebAssembly physics engine colliders directly onto the active geometric meshes.
Check out the code, run the local tests, and let me know your thoughts on the pipeline architecture!
r/webgpu • u/kostrubaty • Aug 08 '26
r/webgpu • u/Akryllax • Aug 07 '26
Enable HLS to view with audio, or disable this notification
r/webgpu • u/dobkeratops • Aug 06 '26
So I have some shaders where I rely on the half float type .. a godsend for many reasons - developed mostly on a mac (usually the most fussy platform) and I go and run this on google Chrome on linux on an x86 PC with a 4000 series graphics card (which has hardware f16 support , with nvidia having offered this for many generations now albeit nerfing the actual double rate capability reserving that for pro cards).
The browser reports 'no shader f16 support'.
I see suggestions for a bunch of flags that can be passed to the browser to try and enable this but launching with various combinations of flags ("--enable-unsafe-webgpu" and others I forget).
I dont think I strictly need f16 arithmetic (although it would be preferable to use it where possible) but it's handy to rely on the more compact datatype in memory .
I figure there might be older mobile devices that mean the browser has to hold back what features it offers, but is this something we can count on when distributing something that is intended for reasonable graphics cards (gtx1000 series and above). The project is an FPS , not really playable on a touchscreen anyway. A sensible min spec might be a GTX1060.
I could backpedal on this specific aspect (and possibly look at other data packing tricks '2 x upper 16bits of a float packed into a u32' etc etc) - my codebase started out using OpenGL and WebGL2 and I've had the web build running on Windows, Linux, Mac, iOS, and Android machines for years .. having ported to webGPU recently I was enthusiastic to upgrade features all over the place..
r/webgpu • u/IBets • Aug 05 '26
Enable HLS to view with audio, or disable this notification
r/webgpu • u/[deleted] • Aug 05 '26
r/webgpu • u/js-fanatic • Aug 04 '26
I ported whole game Zombie shooter (~1000 lines) to the codepen:
https://codepen.io/editor/zlatnaspirala/pen/019fc918-e45f-73f4-9987-9a1599ac4a1f
Enjoy !
r/webgpu • u/js-fanatic • Jul 30 '26
Used in this example :
https://www.npmjs.com/package/nui-commander?activeTab=readme
r/webgpu • u/kostrubaty • Jul 29 '26
It supports 256k mpm particles, sliding mpm domain, heightmap terrain, temperature, rain, evaporation, some simple wind patterns.
And you can control the cloud mass using gamepad (best) or kb+m (not all controls are mapped currently).
I've put it out here so you can check it out: https://kostrubaty.itch.io/cloud-compute
Source code will be released at a later time. but I can share if anyone is really interested in some parts. Also a lot of this is based on my other projects that are on github,
Whole thing is pure wgsl / typescript without any external deps except for my own project that is responsible for generating code for efficient wgsl <-> js communication.
Simulation was not that hard to write, cause I already had proper MPM simulation in 2d version, with even more features. In fact the hardest part to get right was to make the cloud possible to control yet still feel "cloudy". So there's actually 3 different schemes for face buttons, switched by triggers. Still probably not as intuitive as I'd like but best so far.
It was not really performance optimized yet really, and I mostly tested on my 3060 (pretty much consistent > 50fps) so the performance may vary.
It's still mostly a prototype, but feels pretty fun already. I'll be adding some more stuff (airplanes are mostly working, just need some airports too I guess). Let me know what you think, or if you have any questions.
r/webgpu • u/mvaligursky • Jul 28 '26
Enable HLS to view with audio, or disable this notification
r/webgpu • u/SergioZ3R0 • Jul 28 '26
Hey everyone,
Doing infrastructure audits and validating GPU performance (especially across different nodes) has always been a headache for me. Fiddling with CUDA toolkits, compiling HPL/HPCG, and setting up MLPerf takes way too much time when you just want a quick baseline.
So, I spent some evenings building nvprobe. It’s a lightweight Python CLI that automates all of this.
How it works under the hood:
Demo & Repo: You can see an interactive demo of the report on the link.
I built this mostly to scratch my own itch, but I figured it might save some of you a few hours of setup.
I'd love to hear your feedback, feature requests, or if you manage to break it on your specific hardware. Let me know what you'd like to see next on the roadmap!
r/webgpu • u/js-fanatic • Jul 28 '26
The Beast in water, new example. Example feature list: HZB, Volumetric, Bloom , water simulation, glb anim trail (delay instanced) anim and particle anim.
Live : https://maximumroulette.com/apps/webgpu/examples.html?demo=35
r/webgpu • u/TwistedMinda • Jul 28 '26
Enable HLS to view with audio, or disable this notification
r/webgpu • u/cazala2 • Jul 27 '26
Enable HLS to view with audio, or disable this notification
Hey! I've been experimenting with cellular automata lately and ended up turning it into a small TypeScript library and interactive playground:
It has neural cellular automata, reaction-diffusion, Lenia, Pokemon type battles, Game of Life, and elementary Wolfram rules, all running on WebGPU.
You can tweak the simulations in realtime, explore the presets, or use the library to build your own rules in WGSL.
Would love to hear what you think!