Material layers
IntermediateArtistProgrammer You can combine layers of materials to build more complex materials. For example, this screenshot shows the blending of a rust material (left) with a gold material (right): This diagram shows the definition of the materials blended in the screenshot above:
Blend maps
Blend maps are material maps that determine how Game Studio blends layers. For example, you can use a texture as a blend map: Note how the blend map texture corresponds to the patterning on the result. Material maps.
Shading models
Xenko blends materials differently depending on whether their shading models (eg diffuse models, specular models, etc) are different. identical shading models, Xenko collects the attributes of the materials, then applies the shading models to all of them. This saves GPU. different shading models, Xenko applies each material’s shading models to that material’s attributes, then blends the results. This uses more GPU.
Add a layer
- Select the material you want to add a layer to.
- Property Grid (on the right by default), next to Layers, click (Add). Game Studio adds a layer to the material.
- (Select an asset). Select an asset window opens.
- OK. Game Studio adds the material as a layer.
- Blend Map, click (Replace) and select the type of blend map you want to use to blend the layers. For more information about blend maps, see Material maps.
Game Studio blends the material layers using the blend map you specified. You can add as many layers as you need.
Layer properties
See also
- Material maps
- Material attributes
- Material slots
- Materials for developers
