# \[SHELVED\] Material Layering Feedback for 4.19

**URL:** <https://forums.unrealengine.com/t/shelved-material-layering-feedback-for-4-19/105106>\
**Category:** FX\
**Tags:** unreal-engine\
**Created:** [January 16, 2018, 4:37pm UTC](https://forums.unrealengine.com/t/shelved-material-layering-feedback-for-4-19/105106 "2018-01-16T16:37:23Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tim\_Hobson](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Tim\_Hobson](https://forums.unrealengine.com/u/Tim_Hobson)\
**Post date:** [January 16, 2018, 4:37pm UTC](https://forums.unrealengine.com/t/shelved-material-layering-feedback-for-4-19/105106/1 "2018-01-16T16:37:23Z")

</div>

We’re excited to announce that we’ve added support for Material Layers in Unreal Engine 4.19 as an experimental feature. Below is some basic documentation to get you started using the feature. Also, if you have any feedback regarding the use of Material Layering, please post in this thread.

Thank you!

To enable this feature, navigate to the **Project Settings \> Rendering \> Experimental** and set \*\*Support \*\ ***Material Layers** true.

https://mail.google.com/mail/u/0/?ui=2

\*\*Material Layering \*\*is a new way to combine materials in a stack, which builds out the correct material graph without needing to build the node graph by hand. There are two new asset types that we use to do this:

- Material Layer
- Material Layer Blends

Functionally, these behave similarly to Material Functions. These new asset types also enable you to create child instances, which you could not do with Material Functions.

\*\*Material Layer \*\*assets have a default input node which pipes base Material Attributes in from the Material. **Material Layer Blend** assets have two default input nodes which enable you to access the Material Attributes from layers above and below.

\*\*  
https://lh5.googleusercontent.com/V6EOgd7NS1y3Rabfi-nQ1momA\_DsUltg1tM8urVNJZEjRcIaung-OaQu7DD0kXKcsI4ocTwetKHKYqLf0yyJ\_wyuMrpTUoU7cr4RaboJEBmk7nCt67IqSPFD\_fVlOHlcjjT1N6SD  
\*\*

Once you have created a Material Layer and Material Layer Blend asset, you can combine them using a **Material Attributes Layers** node in a Material. With the node selected, you can add layers and set the assets that each layer and blend should from the node Details panel.

\*\*  
https://lh4.googleusercontent.com/PajXzMwj06Xc27VgC3QiOJkCfhczRJNdA\_yi0TQ8bKR7SfA9uckiB4s9h1zJ6\_tdvcUbCmFv52af-jeet0Zh3JYXbRifYUFg0mM3NNApdy5jn8cCV3dVs3YKrnfpKRomIz4ZwDdr  
\*\*

When editing a Material Instance with a parent Material that contains a Material Attribute Layers node, the Material Instance Editor also contains a **Layer Parameters tab. Here, you can change the assets used for any of the existing Layers or Blends that have been set. Use the Add (+**) button to add additional Layers to the stack as needed. You can also see the parameters contained in each of the Material Layer and Material Layer Blends and override their values individually by entering a new one.

\*\*  
https://lh4.googleusercontent.com/bg0ZFO75\_tyypdOTHf4wyB4FSUsw9gFyfzbzRyLVjfdst5KaCXKl\_StcmcCR-jZ3u5I1dVoAgKsZg\_556e4z6L0jMU5ihScSIIuR9vw1aoz5Wa62s1CCd22QKblJ9wT4ggoPGDAU  
\*\*

**Passing Parameters to Layers**

There are three main methods at present to do this, most of which apply to Blends and Layers.

1. **Create a parameter within the layer which behaves similarly to existing Materials and Material Functions.**

```
Parameters added within the layer graphs will be unique to that layer and editable within the layer's section. Even if multiple copies of the same layer are added, each will have its own copy of that parameter to control.

```

1. **Use the Input pin to the Material Attribute Layers stack.**

```
This takes another Material Attributes as input which will be piped into every layer added. For example, we could pass a base normal map for the mesh as an input, like so:

```

\*\*  
https://lh5.googleusercontent.com/3pdiGz792WuZVLiaTgMLZyzbxq1PQSm0HilglFXQIOJOQ0MUQNeMik5hNeFdWrSDRXdmXdwdo7GwDhIYTQPXPVmBW8PodDAC-tP3h7A-iaixSzvNPXkFwWwegElu1pib3BF1YsI5  
\*\*

```
Then within our example Material Layer, we get the Input and blend in:

```

\*\*  
https://lh6.googleusercontent.com/31hak4Bp-dzpJusxDt506iYPDD75bSMg-2QiW75zIAeJg2HXKmVHkrVmKLH225Se7oO6Vo5YEfQ4ZMg\_v5yV3bnBMCChOBzLmoWrIRGlA1l168okpCNTKm\_WpzqMRMX3301wS0qR  
\*\*

```
Each layer can optionally use or ignore the base stack material attributes input. Currently, this method is not accessible within a blend graph.

```

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/3/3/7334874a0defd4b7e25c1cb8014301721522a293.jpeg "4.19 Material Layers Preview | Feature Highlight | Unreal Engine Livestream") ](https://www.youtube.com/watch?v=2dfkedfW1yI)

---

<div class="post-metadata">

**Author:** ![Chosker](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/chosker/32/710746_2.png) [@Chosker](https://forums.unrealengine.com/u/Chosker)\
**Post date:** [January 16, 2018, 10:08pm UTC](https://forums.unrealengine.com/t/shelved-material-layering-feedback-for-4-19/105106/2 "2018-01-16T22:08:07Z")

</div>

uhmm interesting!  
as it’s not yet explained anywhere yet, I have to ask: what’s the difference between this new system and the old [Layered Materials](https://docs.unrealengine.com/latest/INT/Engine/Rendering/Materials/LayeredMaterials/index.html) thing?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e507751d1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e507751d1](https://forums.unrealengine.com/u/anonymous_user_e507751d1)\
**Post date:** [January 16, 2018, 10:16pm UTC](https://forums.unrealengine.com/t/shelved-material-layering-feedback-for-4-19/105106/3 "2018-01-16T22:16:26Z")

</div>

I think the key part is “without needing to build the node graph by hand”. This allows you to keep each material layer as a separate material asset instead of making a jumbo mateial graph.

---

<div class="post-metadata">

**Author:** ![Shadow.Storm](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Shadow.Storm](https://forums.unrealengine.com/u/Shadow.Storm)\
**Post date:** [January 16, 2018, 10:20pm UTC](https://forums.unrealengine.com/t/shelved-material-layering-feedback-for-4-19/105106/4 "2018-01-16T22:20:17Z")

</div>

So, in the example in that document, if you wanted to change the copper portions of the rocket to something with animated flames (because then it will go faster) - you would need to make a new material. If you had a Material Attribute Layers stack that blended together a Rocket\_Body layer and a Rocket\_Details layer with the mask, you could change Rocket\_Details to any Material Layer you wanted (AnimatedFlames, Psychedelic, or Copper) without needing different master materials.

Does that help clarify a bit?

---

<div class="post-metadata">

**Author:** ![Deathrey](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Deathrey](https://forums.unrealengine.com/u/Deathrey)\
**Post date:** [January 16, 2018, 10:43pm UTC](https://forums.unrealengine.com/t/shelved-material-layering-feedback-for-4-19/105106/5 "2018-01-16T22:43:12Z")

</div>

I gave material layering system a spin in 4.19 and overall I don’t expect any significant benefit from it. At least not within a scope of projects currently within my reach.  
Firstly, changing existing uber shader in a more or less developed project to work with new material layering seems a bit on the painful side and definitely not worth the effort.  
Secondly, With the way I’m building master mats, I could hardly find few occasions where matlayer system would be more convenient, than existing set of material functions.  
Thirdly… well, there is no thirdly.

I see potential for the system only only in two directions. First being fresh projects made from scratch, where all the planning was done with the system in mind.  
Second being a usage case where all asset texturing is done exclusively in the engine, potentially involving baking blended mat attributes into textures.

That is my impression so far.

---

<div class="post-metadata">

**Author:** ![Chosker](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/chosker/32/710746_2.png) [@Chosker](https://forums.unrealengine.com/u/Chosker)\
**Post date:** [January 16, 2018, 11:00pm UTC](https://forums.unrealengine.com/t/shelved-material-layering-feedback-for-4-19/105106/6 "2018-01-16T23:00:10Z")

</div>

so it sounds like hassle-free upgrade to Layered Materials

> [@](#):
>
> I see potential for the system only only in two directions. First being fresh projects made from scratch, where all the planning was done with the system in mind.  
> Second being a usage case where all asset texturing is done exclusively in the engine, potentially involving baking blended mat attributes into textures.

either of your 2 directions drive me to the same conclusion I had before with Layered Materials: I can’t think of it as something for production due to the shader complexity derived from it

---

<div class="post-metadata">

**Author:** ![AmphDev](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AmphDev](https://forums.unrealengine.com/u/AmphDev)\
**Post date:** [January 17, 2018, 8:03am UTC](https://forums.unrealengine.com/t/shelved-material-layering-feedback-for-4-19/105106/7 "2018-01-17T08:03:54Z")

</div>

Great!

This will reduce mastermaterial pipelines a lot and make freedome for designer/artists who will be not restricted to handmade mastermaterials anymore 🙂

Btw a question.

Maybe this feature later will allow us layered physical material too? ^^ :rolleyes:

---

<div class="post-metadata">

**Author:** ![RealVis-Studios](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RealVis-Studios](https://forums.unrealengine.com/u/RealVis-Studios)\
**Post date:** [January 17, 2018, 8:25am UTC](https://forums.unrealengine.com/t/shelved-material-layering-feedback-for-4-19/105106/8 "2018-01-17T08:25:35Z")

</div>

Sounds Interesting.

What is the performance of this kind of Materials setup compared to make one big graph ?

---

<div class="post-metadata">

**Author:** ![ZacD](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ZacD](https://forums.unrealengine.com/u/ZacD)\
**Post date:** [January 17, 2018, 9:00am UTC](https://forums.unrealengine.com/t/shelved-material-layering-feedback-for-4-19/105106/9 "2018-01-17T09:00:18Z")

</div>

I assume this designed for/around the Paragon character material workflow?

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/4/d/44d1020f1fa5d2f6c24be187b8fd31497e94ccb2.jpeg "Paragon Character Texturing Pipeline | Unreal Dev Day Montreal 2017 | Unreal Engine") ](https://www.youtube.com/watch?v=nVes6OUyzdw)

---

<div class="post-metadata">

**Author:** ![Seehr](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Seehr](https://forums.unrealengine.com/u/Seehr)\
**Post date:** [January 17, 2018, 9:37am UTC](https://forums.unrealengine.com/t/shelved-material-layering-feedback-for-4-19/105106/10 "2018-01-17T09:37:04Z")

</div>

This is SWEET

---

<div class="post-metadata">

**Author:** ![eyosido](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@eyosido](https://forums.unrealengine.com/u/eyosido)\
**Post date:** [January 17, 2018, 6:49pm UTC](https://forums.unrealengine.com/t/shelved-material-layering-feedback-for-4-19/105106/11 "2018-01-17T18:49:34Z")

</div>

This is a cool feature, definitely needed. We could have a good degree of modularity with functions already, but with this things will become more natural. I hope this will leave the experimental status in 4.20.

---

<div class="post-metadata">

**Author:** ![smbv1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@smbv1](https://forums.unrealengine.com/u/smbv1)\
**Post date:** [January 17, 2018, 8:52pm UTC](https://forums.unrealengine.com/t/shelved-material-layering-feedback-for-4-19/105106/12 "2018-01-17T20:52:35Z")

</div>

Please make sure it going to work on Android devices. They have many limits in the mats. I hope it will work well there first.

---

<div class="post-metadata">

**Author:** ![Maximum-Dev](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Maximum-Dev](https://forums.unrealengine.com/u/Maximum-Dev)\
**Post date:** [January 17, 2018, 8:54pm UTC](https://forums.unrealengine.com/t/shelved-material-layering-feedback-for-4-19/105106/13 "2018-01-17T20:54:30Z")

</div>

…Is there any noticeable performance improvements over the traditional material layering…? otherwise it’s really hard to justify the use of material layering here and there, regardless of how it’s done.

---

<div class="post-metadata">

**Author:** ![Miroac](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Miroac](https://forums.unrealengine.com/u/Miroac)\
**Post date:** [January 19, 2018, 5:08am UTC](https://forums.unrealengine.com/t/shelved-material-layering-feedback-for-4-19/105106/14 "2018-01-19T05:08:01Z")

</div>

What controls can we expect to have when working with a Dynamic Material Instance inside of a Blueprint? So far I haven’t been able to find anything that isn’t changing the standard material parameters.

---

<div class="post-metadata">

**Author:** ![Chosker](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/chosker/32/710746_2.png) [@Chosker](https://forums.unrealengine.com/u/Chosker)\
**Post date:** [January 19, 2018, 7:29am UTC](https://forums.unrealengine.com/t/shelved-material-layering-feedback-for-4-19/105106/15 "2018-01-19T07:29:13Z")

</div>

@Maximum-Dev I don’t expect any, seems just like a workflow QOL thing  
this would really benefit from [Dynamic Branching](https://forums.unrealengine.com/development-discussion/rendering/88635-dynamic-flow-control-in-materials) 🙂

---

<div class="post-metadata">

**Author:** ![Vertex\_Soup](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Vertex\_Soup](https://forums.unrealengine.com/u/Vertex_Soup)\
**Post date:** [January 19, 2018, 12:20pm UTC](https://forums.unrealengine.com/t/shelved-material-layering-feedback-for-4-19/105106/16 "2018-01-19T12:20:06Z")

</div>

Will this work with decals? Eg floating ones…

---

<div class="post-metadata">

**Author:** ![NilsonLima](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@NilsonLima](https://forums.unrealengine.com/u/NilsonLima)\
**Post date:** [January 19, 2018, 2:43pm UTC](https://forums.unrealengine.com/t/shelved-material-layering-feedback-for-4-19/105106/17 "2018-01-19T14:43:13Z")

</div>

I will definitely use it on my game under development, but thinking on Content Creators they will mostly prefer to stick with compatibility over several engine versions than bringing something new just because it is new.

---

<div class="post-metadata">

**Author:** ![BrUnO\_XaVIeR](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/bruno_xavier/32/1110230_2.png) [@BrUnO\_XaVIeR](https://forums.unrealengine.com/u/BrUnO_XaVIeR)\
**Post date:** [January 19, 2018, 2:50pm UTC](https://forums.unrealengine.com/t/shelved-material-layering-feedback-for-4-19/105106/18 "2018-01-19T14:50:51Z")

</div>

… … I’ve been waiting 19 engine versions for this!

[https://admin.mashable.com/wp-content/uploads/2013/07/crying-waterfalls.gif](https://admin.mashable.com/wp-content/uploads/2013/07/crying-waterfalls.gif)

---

<div class="post-metadata">

**Author:** ![Shadow.Storm](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Shadow.Storm](https://forums.unrealengine.com/u/Shadow.Storm)\
**Post date:** [January 19, 2018, 4:18pm UTC](https://forums.unrealengine.com/t/shelved-material-layering-feedback-for-4-19/105106/19 "2018-01-19T16:18:24Z")

</div>

> [@Miroac](#):
>
> What controls can we expect to have when working with a Dynamic Material Instance inside of a Blueprint? So far I haven’t been able to find anything that isn’t changing the standard material parameters.

Right now we haven’t hooked up Blueprint controls for this, because we’re planning out what will be the smoothest workflow for users. Right now if we did expose something, you’d have to manually type in the parameter name, as well as the index of the layer or blend, and that’s not ideal. Definitely keep posted though, it’s something we will be working on before we remove experimental status.

---

<div class="post-metadata">

**Author:** ![Shadow.Storm](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Shadow.Storm](https://forums.unrealengine.com/u/Shadow.Storm)\
**Post date:** [January 19, 2018, 4:22pm UTC](https://forums.unrealengine.com/t/shelved-material-layering-feedback-for-4-19/105106/20 "2018-01-19T16:22:55Z")

</div>

> [@Maximum-Dev](#):
>
> …Is there any noticeable performance improvements over the traditional material layering…? otherwise it’s really hard to justify the use of material layering here and there, regardless of how it’s done.

So, the biggest gains will be if your project currently has a lot of master materials that are similar except for one section of graph, or has lots of reuse of different functions or blend types. For one material each done in the old way vs. the new way, the shader complexity should be similar. As you get more materials and instances though, if you set up the new material stacks well, you can end up with a lot of savings.

[Next page](https://forums.unrealengine.com/t/shelved-material-layering-feedback-for-4-19/105106.md?page=2)
