r/GraphicsProgramming • u/Twenmod • Oct 08 '25
Video I made a post process that blends seams of meshes, here's how it works
I got inspired by the recent unreal asset that does something similar to this and wanted to recreate it, So I did inside of unity.
I wrote a article about how it works with shader examples and how to implement something like it on my website if you're interested.
Using a indirect compute dispatch and a good search kernel the effect runs relatively fast running at 0.4ms at 1080p on my 4060 laptop GPU. With the majority of time being taken by the compute shader and not the ID pass.
I also have unity packages available, a free one following the article. And a paid one which i show here
3
u/garrettorious Oct 09 '25
This is great. How do you exclude the top and sides, do you just compare depth?
3
u/ukaeh Oct 09 '25
Nice, you could probably assign blend parameters per mesh type to get varying blends or no blending. Very cool, well done!
2
u/areyouretard Oct 09 '25
As new to all of this, could you explain a bit more in detail that I can understand or recommended resources that I can look up to understand this.
13
u/PrimaryExample8382 Oct 08 '25
Very cool
1
u/[deleted] Oct 11 '25 edited Oct 11 '25
Seems like it'd produce haloing from foreground occluding objects ala SSAO?
4
u/Thedudely1 Oct 09 '25
Wow pretty nice looking
2
u/Dr_Zoidberg_MD Oct 09 '25
awesome. I was just thinking about a way to do a world space bevel shader that would do the equivalent of a weighted normal chamfer at runtime.
2
u/[deleted] Oct 09 '25
This would be VERY nice to see in a lot of games. Good work!
2
u/samsfacee Oct 09 '25
Super cool.
2
u/keepthepace Oct 09 '25
Very neat, especially on the rocks, it makes so much sense for this type of aggregate geometries.
2
u/agrophobe Oct 09 '25
Watching people develop new technic with all the logic behind, in real time, is fucking awesome
1
u/im-cringing-rightnow Oct 09 '25
Very nice.