Table of Contents

Class MaterialBlendLayer

Namespace
Stride.Rendering.Materials
Assembly
Stride.Rendering.dll

A material blend layer

[DataContract("MaterialBlendLayer")]
[Display("Material Layer", null)]
public class MaterialBlendLayer : IMaterialShaderGenerator
Inheritance
MaterialBlendLayer
Implements

Constructors

MaterialBlendLayer()

Initializes a new instance of the MaterialBlendLayer class.

public MaterialBlendLayer()

Properties

BlendMap

Gets or sets the blend map.

[Display("Blend Map", null)]
[DataMember(40)]
[DataMemberRange(0, 1, 0.01, 0.1, 2)]
public IComputeScalar BlendMap { get; set; }

Property Value

IComputeScalar

The blend map.

Enabled

Gets or sets a value indicating whether this MaterialBlendLayer is enabled.

[DataMember(10)]
public bool Enabled { get; set; }

Property Value

bool

true if enabled; otherwise, false.

Material

Gets or sets the material.

[DataMember(30)]
public Material Material { get; set; }

Property Value

Material

The material.

Name

Gets or sets the name of this blend layer.

[DataMember(20)]
public string Name { get; set; }

Property Value

string

The name.

Overrides

Gets or sets the material overrides.

[DataMember(50)]
[Display("Overrides", null)]
public MaterialOverrides Overrides { get; }

Property Value

MaterialOverrides

The overrides.

Methods

Visit(MaterialGeneratorContext)

Generates the shader.

public virtual void Visit(MaterialGeneratorContext context)

Parameters

context MaterialGeneratorContext

The context.