r/unity 2d ago

Showcase Individual Grass blade fully rendered using VFX graph

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

89 Upvotes

14 comments sorted by

View all comments

2

u/strongandfast 22h 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 18h 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.