Leaf shader for mobile
Hello. I am trying to create a simple terrain with vegetation - trees, bushes, grass. I have some trees created using Unity built-in Tree Editor. Here is an example:
![alt text][1]
In the leaf settings I am using "Nature/Tree Creator Leaves" shader. When the tree is compiled and updated, its material is called Optimized Leaf Material and it uses "Hidden/Nature/Tree Creator Leaves Optimized" shader.
I have created an empty scene with only just this bush. When I walk really close to it and look directly at the bush, FPS drops to 15 on the device, when not looking I get 30 FPS. The bush takes 2 draw calls - 1 for bark and 1 for leafes. In the editor I get no overhead and am not able to profile the problem, GPU and CPU and Rendering tabs look just fine no matter how close I am to the bush.
The device is Moto G5s Plus. I am running PUBG Mobile on this very same device, look at their trees and they look even better and FPS is fine. Unity version is 2018.3.6f.
Here is a screenshot of my sad profiler from the device when looking at the bush:
![alt text][2]
Any ideas? What shader can I use to avoid this problem? I really need it to support lightmaps and billboards for terrain and not to cause so many lags. [1]: /storage/temp/144704-photo-2019-08-16-19-58-03.jpg [2]: /storage/temp/144705-photo-2019-08-16-20-01-48.jpg