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.
- 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.
- 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.