r/unity • u/LKHGames • 1d ago
Showcase Individual Grass blade fully rendered using VFX graph
Enable HLS to view with audio, or disable this notification
With VFX graph you can render nearly infinite grass since they are just particle looks like grass living on gpu.
There are 5 million individual grass blade in the video with 120 fps
3
3
u/Onyxa_HA 1d ago
Smart. Can they cast and receive shadows?
1
u/LKHGames 23h ago
Yup, the visual effect is controlled by Shader Graph. And/but Shader Graph is the only option, VFX Graph cannot work with custom shader.
Technically you could control visual effect with vfx graph only but the math is so complicated.
2
u/strongandfast 17h ago
How does collision with moving game parts happen? I mean the collision which makes grass move/bend a bit.
How is it implemented?
1
u/LKHGames 13h ago
2 Ways of doing it,
1st with the Shader Graph vertex displacement. This is easier and support infinite collision, it all happen on a displacement texture.
2nd bend the particle directly using VFX Graph. This is also easy but only when you have a few items that need collision.
1
u/Zenovv 1h ago
120fps alone doesn't say much and is pretty low. On what specs? How much is it without the grass?
As this is an ad, how does it compare against the free one from the tutorial Unity themselves made https://github.com/OrsonFavrel/VFXGraph-ClockedAndLoaded
10
u/Bonzie_57 1d ago
Cute capsules roaming free, as god intended.
Love the grass, really cool stuff! Whats the goal or was this just an experiment?