Hello,
I find that if I use Terrain tool to create my grass, the unity_ObjectToWorld in my grass shader is incorrect. It seems all grass have the same unity_ObjectToWorld. How can I fix it?
Hello,
I find that if I use Terrain tool to create my grass, the unity_ObjectToWorld in my grass shader is incorrect. It seems all grass have the same unity_ObjectToWorld. How can I fix it?
You can’t. Terrain grass is always batched into a single mesh, thus there’s no way to get the individual grass meshes’ original pivot.
I need the grass’s height info to do some vertex anim. What is the common way to do it in the industry? Is it a good idea to let our artists to paint height on the vertex color?
Yep, use the vertex color. Unity already bakes a top and bottom into the default “sprite” based grass to do wind.
But The terrain bush can set the max height and min height for my plants. How can I get the scaled size for an individual plant?
You can’t. If you want that level of control and information, you can’t use the built in terrain grass. This is why there are so many grass related assets on the store.