AJTech has shared a couple of insightful tutorials showing how to leverage C# and Compute Shaders to set up a neat fluid simulation.
If you're interested in venturing into the realm of real-time fluid simulations but find yourself unsure of how to take the first step, here are a couple of great beginner-friendly tutorials that would serve as the perfect starting point.
Shared by Game Developer and Unity enthusiast Ajay from the AJTech YouTube channel, the two-part tutorial series explores the process of coding and optimizing a neat real-time fluid simulation in Unity using C# and Compute Shaders, special shader programs that run on the GPU, outside of the normal rendering pipeline, and can be used for massively parallel GPGPU algorithms or to accelerate parts of game rendering.
The first tutorial delves deep into the process of creating the simulation and explains how to work with Smoothed Particle Hydrodynamics, providing a basic understanding of how Unity's simulation tools work.
The second tutorial focuses more on optimization and on "making the fluid look cooler". You can check out both tutorials attached above or by visiting the AJTech YouTube channel.
And here are some more of the author's earlier tutorials:
In the future, Ajay also plans to release the third part of the fluid simulation tutorial series, dedicated to realistically rendering the fluid in a performant way, so we highly encourage you to subscribe to the author's YouTube channel so as not to miss any future updates.
Also, don't forget to join our 80 Level Talent platform and our Telegram channel, follow us on Threads, Instagram, Twitter, and LinkedIn, where we share breakdowns, the latest news, awesome artworks, and more.