r/unity_tutorials • u/NedMakesGames • Nov 19 '20
I made a video tutorial introducing compute shaders! Here, I use them to create extra faces on a mesh, but they have many applications! Link in the comments.
64
Upvotes
1
u/moetsi_op Nov 20 '20
did you get the shader from OpenGL?
1
u/NedMakesGames Nov 20 '20
No, it's based off a geometry shader I wrote in a previous video. Unless you mean something else?
6
u/NedMakesGames Nov 19 '20
Video link: https://youtu.be/EB5HiqDl7VE
Compute shaders are scripts you can run on the GPU, like "normal" graphics shaders. They can leverage the GPU's strengths in executing many threads concurrently for a variety of effects, including volumetric fog, marching cubes, blurs, particles, physics, procedural generation, and more. It's hard to find info about them aimed at beginners, so I hope to demystify them a bit with this tutorial. Thanks!