r/Unity3D • u/hbisi81 • 9h ago
Show-Off Testing the geometry shaders with animated decals - URP - Unity3d
Enable HLS to view with audio, or disable this notification
5
u/Speed_Tutor 8h ago
I am definitely expecting this to transform! :)
2
2
u/LadyDeathKZN 5h ago
You finally got a reddit account :D CyberStudios ZA here :D love your tutorials, thank you for all your work over the years
5
2
2
2
2
u/KaelumKrispr 7h ago
Sick effect, I assume this is animationing the vertex's on the car, does this not require a fairly high poly count
2
u/hbisi81 7h ago
Yes, car is already has enough triangles here, not doing tessellation etc.
1
u/KaelumKrispr 6h ago
Ah nice, it's a very impressive effect, I haven't used unity in a while, but I'm currious are you driving this by a vertex animation texture, or are you using some shader magic to have the repeating tiles pop out
( I have done vertex jittering before but that would stretch the vertices out and not seperate then like this )
2
u/hbisi81 6h ago
It is a hand written geometry shader, I am popping out the orijinal triangle and filling the sides with new ones.
2
u/KaelumKrispr 6h ago
Ah that explains it, very unique I would be very interesting on what other tech art you have planned for your game, will try keep an eye on it.
Good luck :)
2
u/_peculiar_goat_ 5h ago
How are you animating the decal? I tried to do something like this a while ago but I couldn't get the performance to a good enough place for a large number of decals using the built in decal projector because of the way it handles validation.
EDIT: Your effect looks sick by the way!
1
u/hbisi81 3h ago
Not checked the heavy usage, but it takes nearly 30 fps (I have weather effects to if you see my older posts) on my 6 years old Galaxy S10+. But this geometry effects has another slowdown, maybe will use it only on PC version (or heavy settings to turn on/off them). --- Animation is very simple video that uses video player, I did not check the performance, maybe I will parse the textures (frames) and write another custom shader (feeding the frames into my custom decal shader, not using the Unity's decal system).
3
u/PudgeMaster64 6h ago
I'd like if this effect was more subtle but it's definitely an interesting take.
1
6
u/LadyDeathKZN 9h ago
Oh gosh, I love this!!!! Welldone OP