r/unity_tutorials • • Jan 06 '21

Grass Character Interaction! I added simple trample effects to my URP shader graph grass. Link in the comments!

75 Upvotes

5 comments sorted by

4

u/NedMakesGames Jan 06 '21

Hi! I created a shader graph for flat grass meshes. It's animated with wind, and now has character interaction! This is implemented using a renderer feature to gather and upload character positions to the shader environment. A custom function node can read the position array and offset grass vertices accordingly. Here's a link to my tutorial video if you're interested: https://youtu.be/AmO7k-Lr0XM

Thanks!

2

u/Kebabhegs Jan 06 '21

hey man, looks great! Big fan of your channel and loving all of the shader videos. Keep doing what you are doing!

2

u/NedMakesGames Jan 06 '21

Thank you, that means a lot!

2

u/Tidsdilatation Jan 06 '21

Cool!

1

u/NedMakesGames Jan 06 '21

😎 Thank you!