Landscape material shaders not compiling

In my project I have a landscape material and it compiles the shaders unless there are many mixed layers, In which case the shaders don’t compile.
The video has a better explanation.

replacing the landscape material them placing it back does not fix it.
I can replicate it in 4.6 in multiple levels with different Landscapes
It seems to happen when all of the layers are intersecting.

Hi AlphaSierra216,

I took a look at your video and was sorely disappointed not to see any puppies or kittens.

Anyway, the problem is that your material is running out of texture unique samplers in the area where all layers are used. Samplers are a limited hardware resource and the limit is 16, and the engine needs a couple for internal purposes such as lighting and weight blending.

The good news is that from 4.6 we have the ability to share them, so you just need to change the SamplerSource for your all your TextureSample nodes to “Shared: Wrap” and the problem will go away.

Cheers

3 Likes

100% worked. Thanks!!

thk, Work for me !