Max layers exceeded, but I do have less than 16.
I get this error:
Error [SM5] error X4510: maximum ps_5_0 sampler register index (16) exceeded
Which I assume means I have too much textures. But that is not true, I have 9 diffuse textures. And I am hooking them up to a Layer Blend node. I am using Height Blend and each layer has it's input of a B/W map set at the correct size. That makes a total of 18 inputs. I thought that may be the problem (even if technically there is only 9 layers) so I removed a couple of them. But still not working. I does work with only 2 layers, each with its splatmap. Which is weird. Is the limit really 16?
I also painted the terrain before with the other method, Landscape Layer Weight, and it worked fine with all the textures added. There were 14 diffuse textures in total. And I imported the splat maps into the layer info.
I am using the LayerBlend method to add normals to the terrain (as far as I know I can't do that with LayerWeight).
Any idea why it says I am exceeding the amount? Or any idea if I can add normals and displacement with LayerWeight?
asked Jun 26 '14 at 02:29 PM in Using UE4
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?
answered Jul 02 '14 at 10:20 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here