Max layers exceeded, but I do have less than 16

Hi SuIXo,

There is a shader limit of 16 texture samplers total. We are looking to increase that to 32 in an upcoming release.

But for now, the limit for use inside a material is 13 user textures, because 2 are used lightmap cooefficients, and one is used for the Specular cubemap. If you set the “Fully Rough” checkbox on the material, the Specular cubemap is not used and that gives you 14 user textures.

The landscape weightmaps (textures automatically generated from your painting) uses 1 texture for every 4 layers you use. So for a regular material with roughness and up to 4 layers, that should leave you 12 textures you can work with, or 11 with up to 8 layers.

There shouldn’t be any usage difference between the blending method (LandscapeLayerWeight or LandscapeLayerBlend).

Can you post your material .uasset files if you’re still having trouble?

Regards,

1 Like