Jack Blazes' Stuff
Home Origami Graphics Game Development Miscellaneous About
Resume

Compute Shader Cloth Simulator - C++ and WebGPU
A repeat of my earlier compute shader implementation of a cloth simulation on WebGPU, now built with C++ and available as an interactive demo on this site


Click here to interact with the demo!

This demo uses compute shaders, so it will only work if you have WebGPU enabled, which you can do in Chrome like this. Big thanks to Élie Michel for his work on this tutorial series, it was super helpful, and for help on his related discord. If you want to see how this program works, you can look in my repository. There is code from Elie's tutorial in my repo (particularly the code in Application.cpp and ResourceManager.cpp).

I might make a more comprehensive write-up eventually, but there is a very quick explanation of how this type of cloth simulator works on my previous Rust implementation of the same simulation.



Now it has lighting!! I'll only include one screenshot, since it's better to experience the demo yourself at the link.