TLDR; Is there an alternative to the “lit” terrain shader (I’m on mobile)? The “lit” basically cuts my fps in half, and I’m not using roughness etc., nor any per pixel lights.
A default simple lit shader on the terrain give me around 20 fps, the lit terrain 8 fps …
The builtin renderer has a performance drop for using terrain shader (base legacy), but in on way this severe.
For now, I can suggest you MicroSplat. Its base version is free. With most features disabled, and assuming you will not support OpenGL ES2 it should work well.
But I’m also interested to have a Simple Lit terrain shader. But only if it will be faster than Microsplat.
You could try converting your terrain to mesh and then use any shader. Though I too recommend microsplat, (which has a terrain to mesh module as well).
@demonixis I have all of the microsplat modules. I can enable most of the features it has and still get better performance than the standard Unity shader. You’ll find that many people here will agree that the developer Jason Booth is an amazingly talented shader developer. Unreal have recently contracted him to work on their terrain shader, possibly because they’ve seen so many people on this forum fruitlessly ask Unity to hire him for that purpose.
Another good option are the Lux shaders developed by Lars Bertram - another fantastic developer. These shaders are also super performant, though don’t have anywhere near as many options as microsplat + modules if you like to tweak the heck out of your terrain to make it look just as you wish. But still really excellent value for money.
if you want a good looking terrain that doesn’t chew up your frame rate, those are the 2 options really. Anything else either won’t look as good or match their speed, from my personal experience. But there are a couple more shaders out there others might vouch for.
TLDR; You can’t go wrong trying out the free microsplat asset. Then build on that if you like the speed and want to customise the hell out of stuff, otherwise give Lux a try for its speed and simplicity.
Not necessarily. It depends on the size of your terrain and what you’re trying to do. Jason has a Discord if you’ve read the docs and run into any problems, and he has videos on youtube explaining how the modules work.