Stride

OPEN / CLOSE
  • Features
  • Blog
  • Documentation
  • Community
(icon) Download

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

OPEN / CLOSE
  • English
  • 日本語
    Show / Hide Table of Contents

    MaterialBlendLayer Class

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

    A material blend layer

    System.Object → MaterialBlendLayer
    Derived from MaterialBlendLayer:

    [DataContract("MaterialBlendLayer")]
    [Display("Material Layer", null)]
    public class MaterialBlendLayer : IMaterialShaderGenerator
    Name Description
    Constructors
    MaterialBlendLayer()

    Initializes a new instance of the MaterialBlendLayer class.

    Properties
    BlendMap

    Gets or sets the blend map.

    Enabled

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

    Material

    Gets or sets the material.

    Name

    Gets or sets the name of this blend layer.

    Overrides

    Gets or sets the material overrides.

    Methods
    Visit(MaterialGeneratorContext)
    | Improve this Doc View Source

    Constructors


    MaterialBlendLayer()

    Initializes a new instance of the MaterialBlendLayer class.

    public MaterialBlendLayer()
    | Improve this Doc View Source

    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
    Type Description
    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
    Type Description
    System.Boolean

    true if enabled; otherwise, false.


    Material

    Gets or sets the material.

    [DataMember(30)]
    public Material Material { get; set; }
    Property Value
    Type Description
    Material

    The material.


    Name

    Gets or sets the name of this blend layer.

    [DataMember(20)]
    public string Name { get; set; }
    Property Value
    Type Description
    System.String

    The name.


    Overrides

    Gets or sets the material overrides.

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

    The overrides.

    | Improve this Doc View Source

    Methods


    Visit(MaterialGeneratorContext)

    public virtual void Visit(MaterialGeneratorContext context)
    Parameters
    Type Name Description
    MaterialGeneratorContext context

    Extension Methods

    ComponentBaseExtensions.DisposeBy<T>(T, ICollectorHolder)
    ComponentBaseExtensions.RemoveDisposeBy<T>(T, ICollectorHolder)
    • Improve this Doc
    • View Source
    In This Article

    Back to top

    Copyright © 2019-2021 .NET Foundation and Contributors
    Supported by the .NET Foundation