Landscape material layer limit?

Hello. So I was messing around with landscape material and layers, and ran into a problem.
I have 5 layers, using layer blender I have them plugged into base color and everything works fine.

But then I went ahead and added also connections to specular, normal and AO, and now after painting 3rd layer on landscape, it compiles shaders and turns gray. (picture below, black is just unpainted area)

Am I doing something wrong? Please help :slight_smile:

Edit: It also gave me this in output log:
LogShaderCompilers:Warning: Failed to compile Material /Game/Materials/Ground/World/Mat_Landscape2.Mat_Landscape2 for platform PCD3D_SM5, Default Material will be used in game.

2 Likes

Hi Kristjanmn,

It looks as though you have reached the texture limit for your material at present. The maximum amount of texture samples a material can use by default is 16, 4 of which as used for rendering, so 12. However, this limitation can be removed by going to each texture sample node in your material and setting the sample source to shared:wrap. Try doing this to see if it fixes your material. If not, try painting over the affected component with a single material at full strength, then see if you can paint over that area again.

7 Likes

That solved the problem, thanks :slight_smile:

2 Likes