How to add grass on a procedural mesh in Unity

2.2k views Asked by At

I was unable to find a good tutorial to help me in my situation :

I created a procedural mesh looking like an island in unity and I want to cover this mesh of grass but after a certain height (it's an island so I don't want grass on the beach...).

I think that I need to procedurally generate the grass when I generate the mesh but I didn't find anything that could help me.

I tried many ways like GPU instancing (i didn't understand well what it was doing), URP shader and more...

Please help me I have been stuck on it for 2 weeks !

Thanks for reply.

1

There are 1 answers

1
Srejon Khan On

First of all, if you want to use terrain grass, you need terrain. You can not put grass on a normal mesh. You have to convert your mesh to terrain and luckily there is a good solution. Follow this tutorial to convert mesh to terrain.

And for adding grass based on height, you can follow this unity answer. Or, this answer.