# Material with more than 3 layers does not appear in the game.

**URL:** <https://forums.unrealengine.com/t/material-with-more-than-3-layers-does-not-appear-in-the-game/1398823>\
**Category:** World Creation\
**Tags:** unreal-editor-for-fortnite, fortnite-creative, unreal-engine, editor, Rendering, question, fortnite\
**Created:** [November 17, 2023, 9:24pm UTC](https://forums.unrealengine.com/t/material-with-more-than-3-layers-does-not-appear-in-the-game/1398823 "2023-11-17T21:24:11Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![FunGameJCPP](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@FunGameJCPP](https://forums.unrealengine.com/u/FunGameJCPP)\
**Post date:** [November 17, 2023, 9:24pm UTC](https://forums.unrealengine.com/t/material-with-more-than-3-layers-does-not-appear-in-the-game/1398823/1 "2023-11-17T21:24:11Z")

</div>

I’ve tried everything, watched tutorials and it’s always the same, whenever I create 3 or more layers in material for landscape, the textures don’t appear in the game. What would I be doing wrong?

 ![Captura de Ecrã (1039)](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/0/e/90e005e210c9d2ff00d566888865f6fe9fbfe531.jpeg)  
 ![Captura de Ecrã (1040)](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/1/a/a1a49cc2ee79ae469a081f766e2aebe9fb13b5c8.jpeg)  
 ![Captura de Ecrã (1041)](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/0/a/00a56cce16a029bacd717b8a90f23869deb1ebfb.png)  
 ![Captura de Ecrã (1042)](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/2/2/622a76fda70788afd56916707b93f69958bf266d.png)

---

<div class="post-metadata">

**Author:** ![Rev0verDrive](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rev0verdrive/32/907214_2.png) [@Rev0verDrive](https://forums.unrealengine.com/u/Rev0verDrive)\
**Post date:** [November 17, 2023, 11:15pm UTC](https://forums.unrealengine.com/t/material-with-more-than-3-layers-does-not-appear-in-the-game/1398823/2 "2023-11-17T23:15:14Z")

</div>

SM5 has a limit of 16 texture samples. For materials that require more each `sampler source` needs to be set to “shared: wrap”.

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/8/5/185618ae018ce053f7bf7afc8e586d7ab5456877.png)

---

<div class="post-metadata">

**Author:** ![FunGameJCPP](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@FunGameJCPP](https://forums.unrealengine.com/u/FunGameJCPP)\
**Post date:** [November 18, 2023, 2:02am UTC](https://forums.unrealengine.com/t/material-with-more-than-3-layers-does-not-appear-in-the-game/1398823/3 "2023-11-18T02:02:17Z")

</div>

Can you explain a little better about this? I have all the textures in the Source sample in shared: wrap. But even so, they don’t appear in the game. Does this refer to the number of textures used which I have 16 (color, normal, roughness, AO)? It’s also a repeat thing, how can you avoid this? Removing some textures like roughness and AO?

---

<div class="post-metadata">

**Author:** ![Rev0verDrive](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rev0verdrive/32/907214_2.png) [@Rev0verDrive](https://forums.unrealengine.com/u/Rev0verDrive)\
**Post date:** [November 18, 2023, 2:51am UTC](https://forums.unrealengine.com/t/material-with-more-than-3-layers-does-not-appear-in-the-game/1398823/4 "2023-11-18T02:51:40Z")

</div>

Once you hit the 16 unique textures you’ll want to start packing… texture channel packing. You should be doing this anyway if you’re thinking about publishing.

Here’s a decent thread on Texture Channel Packing.

> [@Texture Packing for UE5 - Feedback Welcome](https://forums.unrealengine.com/t/texture-packing-for-ue5-feedback-welcome/257423):
>
> Nanite and Lumen slightly alter the focus of how textures are handled in UE5 (for example legacy AO is set to be superseded by Lumen), so I wanted to revisit the texture packing method I’ve been using on my projects up until now because the more I read, the more I realised how un-optimised and redundant it was. Even with the advances in poly count for meshes in Lumen and the help provided by virtual texturing, there’s still no getting around the limits of the good ol’ texture pool. I’m by no mea…

There’s also Texture Atlas.

> **[How To Create a Texture Atlas Master Material in Unreal Engine 5 | Community...](https://dev.epicgames.com/community/learning/tutorials/OzW4/how-to-create-a-texture-atlas-master-material-in-unreal-engine-5)**
>
> A tutorial on how to create a texture atlas master material in Unreal Engine 5. Texture atlases are a great way to lower your games texture memory and r...

* * *

For your particular issue we’ll need to see your material setup.

---

<div class="post-metadata">

**Author:** ![FunGameJCPP](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@FunGameJCPP](https://forums.unrealengine.com/u/FunGameJCPP)\
**Post date:** [November 18, 2023, 4:28pm UTC](https://forums.unrealengine.com/t/material-with-more-than-3-layers-does-not-appear-in-the-game/1398823/5 "2023-11-18T16:28:39Z")

</div>

That’s right, I removed the AO and the textures appeared again. For those who have the same problem, to avoid using several separate textures that occupy the maximum allowed samples of 16, use one that contains in its channel red - AO texture, green - Roughness texture, blue - metallic texture. And that? Correct me if I’m wrong, it was something I had no idea about. There are many tutorials teaching how to packing textures: [https://youtu.be/xd4D3evRJVc](https://youtu.be/xd4D3evRJVc)

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [December 18, 2023, 4:29pm UTC](https://forums.unrealengine.com/t/material-with-more-than-3-layers-does-not-appear-in-the-game/1398823/6 "2023-12-18T16:29:01Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
