URP - Simple lit terrain shader alternative

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.

2 Likes

Up, I’m also interested

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.

Same, on Quest terrain with simple lit shader = 72 FPS.
If use terrain lit on terrain = 20 FPS

Do you have a Simple Lit terrain shader??

you can apply regular simple lit material to terrain, but terrain become white.

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).

@transat I took a look at the store page, do you use it? How is it compared to the shader terrain? About compilation time for exemple?

@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.

Is it suitable for mobile/VR?

Yes

What about performances? Can you tweak it? I read on the description that it contains a LOT of features. What about compilation time?

You don’t need to enable all the shader features. only the ones you need

It’s a tweaker’s delight and super performant in every way.
Honnêtement c’est top.

Ok that’s great I’ll take it! Any gains to convert a terrain to a mesh?

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.

Is there any lit shader that would receive shadow?