Hey guys, experimenting with the material layering system in 4.19. Materials are all blending together nicely but just having one problem; I can't seam to add the base normal map of my model. When I use 'Blendanglecorrectednormals' The stats come up with this error:
[SM5] /Engine/Generated/Material.ush(1901,2-39): warning X3206: implicit truncation of vector type
[SM5] /Engine/Generated/Material.ush(1905,2-48): warning X3206: implicit truncation of vector type
[SM5] /Engine/Generated/Material.ush(1905,2-48): warning X3206: implicit truncation of vector type
[SM5] /Engine/Private/DeferredShadingCommon.ush(673,14-35): error X4510: maximum ps_5_0 sampler register index (16) exceeded
I've also tried creating a custom function which does a similar job but I still get the same error; Am I missing something?
Replies
Anyways, the problem is, the AO output is one component thing, its a scalar, and you are multiplying it by something with 3 components (the white pin of the texture gives 3 components, r, g, and b). Take the red or whichever channel of the AO texture and then it will work.