Material Layers
How it works

What is a LayerStack

A LayerStack is an instance of a LayerGraph that generates the layered material.

layerStack

A LayerStack is an instance of a LayerGraph. It uses a LayerGraph to generate the layered material. See What is a LayerGraph and Using LayerStacks.

Multiple LayerStacks can use the same LayerGraph. You can't change the LayerMaterials from the LayerStack, but you can change the material parameters.

Material parameters are unique per LayerStack. You can change parameters, texture samplers etc. without affecting other LayerStacks sharing the same LayerGraph.

You can cycle through the layers using the dropdown.

You can disable layers without having to edit the LayerGraph. This requires a re-generation, useful for generating LOD variants.

The generated gdshader can be saved and reused. For LayerStacks sharing the same LayerGraph with the same layer configurations, it's highly recommended to save and reuse the gdshaders across them. Re-generating the LayerStack will overwrite the gdshader across all LayerStacks that share it, but the material parameters won't be affected.

The Sync Uniforms button controls whether parameter changes made in the LayerGraph are pushed to the LayerStack. Changing any parameter in the LayerStack disables Sync Uniforms automatically. Turning it back on copies the LayerGraph's parameter values to the LayerStack.

YoutubePatreonDocsAssetsTwitter

©2026 Foyezes