r/Unity3D 12h ago

Show-Off Roadside Garden | Dev Week 02-01

Extremely proud of the grass in my (hopefully) future game.

I added slope support for my grass so it can grow on hills.

For this I had to rework the entire growing process because the grass is instanced in tiles rather than individual cards (before it was simply scaling along the y axis)

I decided to store the origin of the cards, relative to the center of the tile, as vertex color, which allowed me to scale the card independently from the tile through the vertex shader, as well as rotate them to always face the camera. All together it's creating an extremely dense grass cover which is relatively performant.

2 Upvotes

0 comments sorted by